// first check that the index content nodes exist
checkPathExists(indexed, "oak:index", "rootIndex", ":index");
checkPathExists(indexed, "newchild", "other", "oak:index", "subIndex",
":index");
Property2IndexLookup lookup = new Property2IndexLookup(indexed);
assertEquals(ImmutableSet.of("testRoot"), find(lookup, "foo", "abc"));
Property2IndexLookup lookupChild = new Property2IndexLookup(indexed
.getChildNode("newchild").getChildNode("other"));
assertEquals(ImmutableSet.of("testChild"),
find(lookupChild, "foo", "xyz"));
assertEquals(ImmutableSet.of(), find(lookupChild, "foo", "abc"));