ObjectId id = new ObjectId("MtTable1", MtTable1.TABLE1_ID_PK_COLUMN, 1);
Object fault = clientContext.createFault(id);
assertTrue(fault instanceof ClientMtTable1);
ClientMtTable1 o = (ClientMtTable1) fault;
assertEquals(PersistenceState.HOLLOW, o.getPersistenceState());
assertSame(clientContext, o.getObjectContext());
assertNull(o.getGlobalAttribute1Direct());
// make sure we haven't tripped the fault yet
assertEquals(PersistenceState.HOLLOW, o.getPersistenceState());
// try tripping fault
assertEquals("g1", o.getGlobalAttribute1());
assertEquals(PersistenceState.COMMITTED, o.getPersistenceState());
}