Configuration config = read("/openjmstest.xml");
// ensure the tables don't exist
EmbeddedDataSource ds = MigrationHelper.getDataSource(DB_NAME);
RDBMSTool tool = new RDBMSTool(ds.getConnection());
Database schema = MigrationHelper.getSchema();
tool.drop(schema);
assertFalse(tool.hasTables(schema.getTable()));
// Create the exporter, and verify it has created the tables.
new Exporter(config, DB_NAME, false);
assertTrue(tool.hasTables(schema.getTable()));
}