Artist artist = context.newObject(Artist.class);
artist.setArtistName("111");
ObjectContext child = context.createChildContext();
Painting painting = child.newObject(Painting.class);
painting.setPaintingTitle("222");
Artist localParentMt = (Artist) child.localObject(artist.getObjectId(), null);
assertEquals(0, artist.getPaintingArray().size());
assertEquals(0, localParentMt.getPaintingArray().size());