NodeState after = builder.getNodeState();
NodeState indexed = hook.processCommit(before, after, CommitInfo.EMPTY);
QueryIndex queryIndex = new SolrQueryIndex("solr", server, configuration);
FilterImpl filter = new FilterImpl(mock(SelectorImpl.class), "", new QueryEngineSettings());
filter.restrictPath("/newnode", Filter.PathRestriction.EXACT);
filter.restrictProperty("prop", Operator.EQUAL,
PropertyValues.newString("val"));
Cursor cursor = queryIndex.query(filter, indexed);
assertNotNull(cursor);