@Test
	public void testhandler() {
		input.send(new GenericMessage<Double>(10.0));
		input.send(new GenericMessage<Double>(20.0));
		input.send(new GenericMessage<Double>(24.0));

		RichGauge gauge = repo.findOne("test");
		assertNotNull(gauge);
		assertEquals(3, gauge.getCount());
		assertEquals(24.0, gauge.getMax(), 0.001);
		assertEquals(10.0, gauge.getMin(), 0.001);
		assertEquals(18.0, gauge.getAverage(), 0.001);
		// Included here because the message handler constructor creates the gauge. Don't want to
		// delete it in @After.
		repo.delete("test");
	}
@author David Turanski
@author Gary Russell
spring-xd-analytics/src/test/java/org/springframework/xd/analytics/metrics/integration/RichGaugeHandlerTests.java