title: CDI in JUnit tests with Jersey Test Framework
body: <p>We are using the Jersey Test Frameworks for API testing. In test-mode, we use an h2 database, mysql in production. Everything is fine to this point. </p>
  
  <p>Now i want to write tests for our repositories to check if the data is written properly to the database.</p>
  
  <p>I can't inject any classes in my tests so i am using the standard constructor the create an new instance of RepositoryA. Works for me.</p>
  
  <p>Now the problem: RepositoryA is now injecting an instance of RepositoryB. And injection isn't working on test-scope.</p>
  
  <p>Is it possible to get injection running in this environment? </p>