Does anyone here have experience using Dbunit ( to unit test Java classes involving database access? You use it to first export part or all of your database schema to an XML file. then before each unit test is run the database is blown away and recreated from the XML file so every test is performed against the exact same database. My question is, does anyone know of a similar framework or even an extension to Dbunit that allows the unit tests to be run against the XML file itself?