title: Inject CDI bean in a Junit test script
body: <p>I have an application running on JBoss AS 7.1.1. This app uses some resources of CDI specification as interceptors, injection, etc. The architecture of my app is very simple with the structure below:</p>
  <blockquote>
  <p><strong>view</strong> (xhtml and facelets)</p>
  <p><strong>controller</strong> (managed beans with @Named, except in the ViewScoped)</p>
  <p><strong>model</strong> (divided in two layers, service and dao)</p>
  <p><em><strong>service</strong></em> (with @Stateless annotation, here I use an interceptor that I created to manage the transactions with database, because I use native JDBC)</p>
  <p><em><strong>dao</strong></em></p>
  </blockquote>
  <p>I need to create some scripts to test the application service layer, injecting the service implementation and invoking the business methods.</p>
  <p>I believe that this architecture is very common. I'm sorry for my english.</p>
  <p>Can someone help me, please?</p>
  <p>Thanks!</p>