EditorDiff.process(new LuceneIndexEditor(builder), before, after);
NodeState indexed = builder.getNodeState();
QueryIndex queryIndex = new LuceneIndex();
FilterImpl filter = createFilter(NT_BASE);
filter.restrictPath("/", Filter.PathRestriction.EXACT);
filter.restrictProperty("foo", Operator.EQUAL,
PropertyValues.newString("bar"));
Cursor cursor = queryIndex.query(filter, indexed);
assertTrue(cursor.hasNext());
assertEquals("/", cursor.next().getPath());