In our projects, we do have 'test' packages for test specific code (utils, constants, whatever), but not for the tests themselves. I would either leave the test `Constants.java` where it is and move the tests back, then import the Constants class; just be careful to import the right one. (If you use Eclipse or IDEA, it will give you a choice of which to import)

Alternatively, I'd rename the test `Constants.java` to `TestConstants.java`. 

Either solution, or both together would be fine. I don't think how to solve the `Constants` naming problem is as important as keeping the tests in the same package as the production code, but that's just been my experience. :)