Root root = createRoot();
Tree tree = root.getTree("/");
tree.addChild("somenode").setProperty("foo", "bar");
tree.addChild("someothernode").setProperty("foo", "bard");
tree.addChild("anotherone").setProperty("foo", "a fool's bar");
root.commit();
QueryIndex index = new SolrQueryIndex("solr", server, configuration);
FilterImpl filter = new FilterImpl(mock(SelectorImpl.class), "");
filter.restrictProperty("foo", Operator.EQUAL, PropertyValues.newString("bar"));
Cursor cursor = index.query(filter, store.getRoot());