SelectQuery query = new SelectQuery(Table1.class);
ObjectContext context1 = runtime.getContext();
ObjectContext context2 = runtime.getContext();
Table1 o1 = (Table1) Cayenne.objectForQuery(context1, query);
Table1 o2 = (Table1) Cayenne.objectForQuery(context2, query);
assertNotNull(o1);
assertNotNull(o2);
assertEquals("Abc", o1.getName());
assertNotSame(o1, o2);
assertEquals(o1.getObjectId(), o2.getObjectId());
}