@Test
	public void testCountNow() {
		applicationContext = new AnnotationConfigApplicationContext(
				NullTimefieldAggregateCounterTestsConfig.class);

		input().send(new GenericMessage<Object>(""));

		AggregateCount counts = repository().getCounts("foo", 5, AggregateCountResolution.hour);
		assertThat(counts.getCounts(), equalTo(new long[] { 0, 0, 0, 0, 1 }));
	}
Tests the aggregate-counter module.

@author Eric Bottard
spring-xd-analytics/src/test/java/org/springframework/xd/analytics/metrics/integration/AggregateCounterTests.java