public void testMigration(boolean migrateCreationDates) throws Exception {
System.setProperty("MIGRATE_CREATION_DATES", String.valueOf(migrateCreationDates));
// the remover does the migration on instantiation
MetastoreRemover remover = new MetastoreRemover(new DefaultStorageFinder(new ApplicationContextProvider()) {
@Override
public synchronized String getDefaultPath() throws ConfigurationException {
return root.toString();
}
});