Gosh, that was pretty obvious
I guess I was confusing this with setting up packages, i.e. I was under the impression that I had to create a path test/src/com/example/graphic, but no, the class files will go into test/classes/com/example/graphic, while the source files go under test/src/com/mycompany/myproject
When the .java files get compiled using the command in the common test directory, the class files go under /classes/.../graphic.
Wow, I've been ruminating over this all week!
Thanks!