root.commit(DefaultConflictHandler.OURS);
QueryIndex index = new LuceneIndex(store, indexInfo);
FilterImpl filter = new FilterImpl(null);
filter.restrictPath("/", Filter.PathRestriction.EXACT);
filter.restrictProperty(
"foo",
Operator.EQUAL,
MemoryValueFactory.INSTANCE.createValue("bar"));
Cursor cursor = index.query(filter, null);
assertTrue(cursor.next());