How to test JPA2 persistence code