public void testDefault() throws InterruptedException {
ObjectContext context = createROPContext();
context.getEntityResolver().getCallbackRegistry().addListener(ClientMtLifecycles.class, this);
assertAll(0, 0, 0, 0, 0, 0, 0, 0);
ClientMtLifecycles l1 = context.newObject(ClientMtLifecycles.class);
assertAll(1, 0, 0, 0, 0, 0, 0, 0);
l1.setName("x");
assertAll(1, 0, 0, 0, 0, 0, 0, 0);
context.commitChanges();
Thread.sleep(5); //until commit
assertAll(1, 0, 1, 1, 0, 0, 0, 0);
l1.setName("x2");
assertAll(1, 0, 1, 1, 0, 0, 0, 0);
context.commitChanges();
Thread.sleep(5); //until commit
assertAll(1, 0, 1, 1, 1, 1, 0, 0);