filter.restrictPath("/", Filter.PathRestriction.EXACT);
filter.restrictProperty(
"foo",
Operator.EQUAL,
MemoryValueFactory.INSTANCE.createValue("bar"));
Cursor cursor = index.query(filter, null);
assertTrue(cursor.next());
assertEquals("/", cursor.currentPath());
assertFalse(cursor.next());
}