oracle has its own EJB3 testing framework for testing outside the container, which actually is very simple
dunno if it can be applicated to on apps written for jboss, but similar software for jboss is just a mkatter of time
We'll have an out-of-container EntityManager implementation soon.
Otherwise JBoss has some nice extensions to JUnit that unfortunately we haven't documented yet.
BUT...if you checkout CVS and look in the EJB3 project you'll see it in action. Specifically
all the tests under test/src/...
The JBossTestCase class allows you to specify archives you want deployed before the test runs and will automatically delete them when they are finished. I've been trying to get somebody at Jboss to package and document our JUnit stuff....Looks like I'll just have to do it myself...
If you just want an EntityManager, go to www.hibernate.org.