@Test
public void testSimpleJsonQuery()
throws IOException, SolrServerException, QueryNodeException {
this.addJsonString("1", "{ \"aaa\" : { \"bbb\" : \"ccc\" } }");
SolrQuery query = new SolrQuery();
final QueryBuilder b = new QueryBuilder();
query.setQuery(b.newTwig("aaa").with(b.newNode("ccc"), 3).toString());
query.setRequestHandler("json");
String[] results = this.search(query, ID_FIELD);
assertEquals(1, results.length);
query = new SolrQuery();
query.setQuery(b.newTwig("aaa").with(b.newNode("ccc"), 2).toString());
query.setRequestHandler("json");
results = this.search(query, ID_FIELD);
assertEquals(0, results.length);
}