JPAUnit is a Java library for assisting with unit testing your JPA code. It facilitates the initialisation of a database to a known state before commencing units test in Java. It leverages the mapping already done in your application's model that maps Java POJOs to database tables to insert data, defined in XML files into the target database.
JPAUnit leverages the database abstraction layer already created by JPA data providers to allow tests to target any vendor database that is compatible with your JPA provider.
JPAUnit - Mandela Day Release 2015
In honour of Mandela Day, 18th July 2015, Jumping Bean is pleased to announce the release of version V0.1 of JPAUnit. Release V.01 can be downloaded from GitHub