Alexander Burchak has posted a very well written and organized article
on testing EJBs using OpenEJB. His production systems are Hibernate
and JBoss and the article shows how to user various overrides and
configuration to test that application without modification using
OpenEJB. The example application focuses on JPA and WebServices and
has a very realistic and detailed flair.
http://tech-mind.blogspot.com/2009/03/testing-ejb-out-of-application-server.html
If you like his post, make sure you leave a "good job" or a "thank
you" in the comments. It feels like a million bucks no matter who you
are.
-David