1. OpenJPA, Jersey, JUnit: Using a different persistence unit for my unit tests? stackoverflow.com
I'm building an application using OpenJPA 2.0.0, Jersey 1.3, and JUnit 4.8.1. I've set it up so I have two different persistence units defined in my persistence.xml: "default" and "unittest." Default ...
2. How and who should inject PersistenceContext when running tests through Jersey/Grizzly? stackoverflow.com
I have this class (mix of JAX-RS/Jersey and JPA/Hibernate):