title: How to easily test a EJB using JUnit
body: <p>I want to test an enterprise java bean (that should later be deployed to a JBoss server) using JUnit. But I don't exactly know how tools I can use for this. Plain JUnit fails because of the missing EJB Container and the caused lack of needed injections.</p>
  
  <p>Googling a bit around lead me to a library called JBoss EJB embedded container, but it seems that it is obsolete. I also couldn't find any source or binary files to download.</p>
  
  <p>So please help, what's a easy way to locally generate a "mock" container that is able to run the JUnit tests on the enterprise beans?</p>
  
  <p>Greetings
  Ben</p>