Javaworld has an article where Nader Aeinehchi uses a combination of XStream, OpenEJB and JUnit to test EJBs with a low roundtrip time of 3sec. Anyone that has worked with projects that use EJBs know that this is a relatively short time.
One of the interesting concepts of the article was actually using XStream for specifying mock data to pass the EJBs and services. I feel kind of stupid for not thinking of this before. Next time around. 🙂