SelectQuery q = new SelectQuery(Painting.class);
q.addOrdering(Painting.PAINTING_TITLE_PROPERTY, SortOrder.ASCENDING);
final List<?> childSources = child.performQuery(q);
assertEquals(5, childSources.size());
queryInterceptor.runWithQueriesBlocked(new UnitTestClosure() {
public void execute() {
Painting childHollowTargetSrc = (Painting) childSources.get(0);
assertSame(child, childHollowTargetSrc.getObjectContext());
Artist childHollowTarget = childHollowTargetSrc.getToArtist();