ScaffoldUnit will help you to prepare the database data context when you do unit test.
'org.crazycake:ScaffoldUnit:1.0.0-RELEASE'
<dependency>
<groupId>org.crazycake</groupId>
<artifactId>ScaffoldUnit</artifactId>
<version>1.0.0-RELEASE</version>
</dependency>
<dependency org="org.crazycake" name="ScaffoldUnit" rev="1.0.0-RELEASE"/>
"org.crazycake", "ScaffoldUnit", "1.0.0-RELEASE"