Testing hibernate-backed Cobalt module with in-memory database

The WebContent module uses Hibernate for it's data persistence and I'd like to setup some tests for our DAOs (data access objects) where they run un-modified in their HQL queries, but use a database context for an in-memory database instead of the Oracle db we use for deployed environments. I'd like to have the schema automatically created each time the tests run (preferably from the hibernate mappings). Are any other modules doing this that I could steal code from/get inspiration?

Answers