assertFalse("Only UserManagerImpl supported",
createImporter().init(new DummySession(), sImpl, false, ImportUUIDBehavior.IMPORT_UUID_COLLISION_THROW, new ReferenceChangeTracker()));
}
public void testInitTwice() {
ProtectedPropertyImporter ppi = createImporter();
assertTrue(ppi.init(sImpl, sImpl, false, ImportUUIDBehavior.IMPORT_UUID_COLLISION_THROW, new ReferenceChangeTracker()));
try {
ppi.init(sImpl, sImpl, false, ImportUUIDBehavior.IMPORT_UUID_COLLISION_THROW, new ReferenceChangeTracker());
fail("calling init twice must fail");
} catch (IllegalStateException e) {
// success
}
}