for (int i = 0; i < counts.length; i++) {
assertEquals("count at index " + i + " should be " + (i + 1), i + 1, counts[i]);
}
// Check a query for twelve months past
counts = aggregateCounterRepository.getCounts(counterName, new Interval(end.minusMonths(11), end), AggregateCountResolution.month).getCounts();
assertEquals(12, counts.length);
counts = aggregateCounterRepository.getCounts(counterName, 3, end, AggregateCountResolution.month).getCounts();
assertEquals(3, counts.length);
assertEquals(6, counts[2]);