public void checkResults(final SearchResponse myResponse) throws IOException {
_response = myResponse;
final Facets facets = myResponse.getFacets();
assertEquals("Found " + facets.facets().size() + " facets instead of 1", 1, facets.facets().size());
final Facet facet = facets.facet(_facetName);
assertEquals(queryType(), facet.getType());
checkEntries(facet);
checkHeaders(facet);
}