NodeState indexed = HOOK.processCommit(before, after,CommitInfo.EMPTY);
QueryIndex queryIndex = new LuceneIndex(analyzer, null);
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("/a", cursor.next().getPath());