CayenneContext c1 = (CayenneContext) runtime.getContext();
CayenneContext c2 = (CayenneContext) runtime.getContext();
ClientMtTable4 o1 = c1.newObject(ClientMtTable4.class);
ClientMtTable5 o1r = c1.newObject(ClientMtTable5.class);
c1.commitChanges();
ClientMtTable4 o2 = (ClientMtTable4) c2.localObject(o1.getObjectId(), null);
ClientMtTable5 o2r = (ClientMtTable5) c2.localObject(o1r.getObjectId(), null);
o2.addToTable5s(o2r);
c2.commitChanges();
assertEquals(1, o1.getTable5s().size());