I'm using TestNG for unit & integration tests, and Guice for DI. I would like to treat my test classes like other classes - instead of directly working with the injector, I would rather define fields marked with @Inject, and get these injected before each test.
Is there a framework that does this? I believe that AtUnit does something similar, but I'm not sure how it integrates with TestNG, nor how mature it is.