assertNotNull(tempID);
assertTrue(tempID.isTemporary());
assertSame(context, object.getObjectContext());
// double registration in the same context should be quietly ignored
context.registerNewObject(object);
assertSame(tempID, object.getObjectId());
assertSame(object, context.getGraphManager().getNode(tempID));
// registering in another context should throw an exception
DataContext anotherContext = createDataContext();