assertEquals(first + 2, manager.nextId());
assertEquals(first + 3, manager.nextId());
}
public void testInsertObjectWithFields() throws ObjectPersistenceException {
final ObjectData data = createData(Role.class, 99, new FileVersion("user", 13));
data.set("Person", SerialOid.createPersistent(101));
assertNotNull(data.get("Person"));
data.set("Name", "Harry");
assertNotNull(data.get("Name"));
manager.insertObject(data);
final ObjectData read = (ObjectData) manager.loadData(data.getOid());
assertEquals(data.getOid(), read.getOid());
assertEquals(data.getTypeName(), read.getTypeName());
assertEquals(data.get("Person"), read.get("Person"));
assertEquals(data.get("Name"), read.get("Name"));
}