.setFacets(facetQuery.bytes().array())
.execute().actionGet();
facet = (InternalDistinctDateHistogramFacet) response.getFacets().facet("distinct");
builder = XContentFactory.contentBuilder(XContentType.JSON).startObject();
facet.toXContent(builder, ToXContent.EMPTY_PARAMS).endObject();
assertThat(builder.string(), equalTo(
"{\"distinct\":{" +
"\"_type\":\"distinct_date_histogram\",\"entries\":[" +
"{\"time\":950400000,\"count\":2}," +
"{\"time\":1555200000,\"count\":3}" +
"]," +