@Test
public void TestJSONResponse() throws Exception {
facetOnTags();
CacheStatsPerFieldResponse r = client.admin().cluster()
.execute(CacheStatsPerFieldAction.INSTANCE, new CacheStatsPerFieldRequest())
.get();
XContentBuilder builder = jsonBuilder();
builder.startObject();
r.toXContent(builder, ToXContent.EMPTY_PARAMS);
builder.endObject();
builder.close();
String JSON = builder.bytes().toUtf8();
logger.info("JSON: {}",JSON);