DataContext parentPeer = createDataContextWithSharedCache(false);
Painting py1 = (Painting) parentPeer.localObject(py.getObjectId(), py);
Artist a1 = (Artist) parentPeer.localObject(a.getObjectId(), a);
final ObjectContext peer2 = context.createChildContext();
final Painting py2 = (Painting) peer2.localObject(py.getObjectId(), py);
final Artist a2 = (Artist) peer2.localObject(a.getObjectId(), a);
a1.addToPaintingArray(py1);
assertEquals(1, a2.getPaintingArray().size());
assertFalse(a2.getPaintingArray().contains(py2));