@Test
public void testHistogramActionIntervalDayNoFilter() throws FoxtrotException, JsonProcessingException {

    HistogramRequest histogramRequest = new HistogramRequest();
    histogramRequest.setTable(TestUtils.TEST_TABLE_NAME);
    histogramRequest.setPeriod(Period.days);
    LessThanFilter lessThanFilter = new LessThanFilter();
    lessThanFilter.setTemporal(true);
    lessThanFilter.setField("_timestamp");
    lessThanFilter.setValue(System.currentTimeMillis());
    histogramRequest.setFilters(Lists.<Filter>newArrayList(lessThanFilter));
    HistogramResponse response = HistogramResponse.class.cast(getQueryExecutor().execute(histogramRequest));
    filterNonZeroCounts(response);
    List<HistogramResponse.Count> counts = new ArrayList<HistogramResponse.Count>();
    counts.add(new HistogramResponse.Count(1397586600000L, 6));
    counts.add(new HistogramResponse.Count(1397673000000L, 1));
    counts.add(new HistogramResponse.Count(1397932200000L, 1));
    counts.add(new HistogramResponse.Count(1398623400000L, 3));
    assertEquals(response.getCounts(), counts);
}