MapReduceOperation mrOp =
new MapReduceOperation.Builder(BinaryValue.unsafeCreate(query.getBytes()))
.build();
cluster.execute(mrOp);
mrOp.await();
assertTrue(mrOp.isSuccess());
ArrayNode resultList = mrOp.get().getResults().get(1);
// The query should return one result which is a JSON array containing a
// single JSON object that is a asSet of word counts.