filter.restrictProperty("foo", Operator.EQUAL,
PropertyValues.newString("bar"));
Cursor cursor = queryIndex.query(filter, indexed);
assertNotNull(cursor);
assertTrue("no results found", cursor.hasNext());
IndexRow next = cursor.next();
assertNotNull("first returned item should not be null", next);
assertEquals("/", next.getPath());
assertNotNull(next.getValue("foo"));
assertEquals(PropertyValues.newString("[bar]"), next.getValue("foo"));
assertFalse(cursor.hasNext());
}