@Test
public void testDateFacets() throws Exception {
RangeFacet.Entry entries[] = new RangeFacet.Entry[2];
entries[0] = newEntry("-Infinity", "xy");
entries[1] = newEntry("xy", "Infinity");
final RangeFacet rf = new InternalRangeFacet(ElasticTweetSearch.DATE_FACET, entries);
SearchHits sh = mock(SearchHits.class);
when(sh.getTotalHits()).thenReturn(10L);
SearchResponse sr = mock(SearchResponse.class);