@Test
public void testDaily() throws Exception {

    final TemporalResolution daily = TemporalResolution.daily;
    Date startDate = TimeUtil.parseShortUtcFormat("2012-11-01");
    //execution 1
    Date endDate = TimeUtil.parseShortUtcFormat("2012-11-08");
    List<RegriddingTimeStep> results = regriddingAggregator.aggregate(startDate, endDate, daily);
    //verification 1
    assertEquals("7 days, will give 7 coarser files", 7, results.size());
    assertEquals("2012-11-01", df.format(results.get(0).getStartDate()));
    assertEquals("2012-11-02", df.format(results.get(0).getEndDate()));
    assertEquals("2012-11-02", df.format(results.get(1).getStartDate()));
    assertEquals("2012-11-03", df.format(results.get(1).getEndDate()));
    assertEquals("2012-11-03", df.format(results.get(2).getStartDate()));
    assertEquals("2012-11-04", df.format(results.get(2).getEndDate()));
    assertEquals("2012-11-04", df.format(results.get(3).getStartDate()));
    assertEquals("2012-11-05", df.format(results.get(3).getEndDate()));
    assertEquals("2012-11-05", df.format(results.get(4).getStartDate()));
    assertEquals("2012-11-06", df.format(results.get(4).getEndDate()));
    assertEquals("2012-11-06", df.format(results.get(5).getStartDate()));
    assertEquals("2012-11-07", df.format(results.get(5).getEndDate()));
    assertEquals("2012-11-07", df.format(results.get(6).getStartDate()));
    assertEquals("2012-11-08", df.format(results.get(6).getEndDate()));
    //execution 2
    endDate = TimeUtil.parseShortUtcFormat("2012-11-24");
    results = regriddingAggregator.aggregate(startDate, endDate, daily);
    //verification 2
    assertEquals("23 days, will give 23 coarser files", 23, results.size());
}