If you use Eclipse as your development environment and are in the process of using the Java Persistence API, Lars Hoidahl post walks you through the testing process using HiberObjects. Read Lars post 'How to test Java Persistence API in 5 minutes' http://larsho.blogspot.com/2008/12/how-to-test-java-persistence-api-in-5.html