DataTest is a database testing framework which is designed to work with ORM libraries such as Hibernate. It transparently creates JDBC proxies which can be used to verify questions such as:
DataTest is particularly well suited to verifying cacheing configurations for libraries such as Hibernate.