@Test
	public void testConvertToDouble() {
		GaugeRepository gaugeRepo = mock(GaugeRepository.class);
		GaugeHandler handler = new GaugeHandler(gaugeRepo, "'test'");
		int i = 4;
		long val = handler.convertToLong(i);
		assertEquals(4, val, 0.001);
		double d = 4.0;
		val = handler.convertToLong(d);
		assertEquals(4, val, 0.001);
		float f = 4.0f;
		val = handler.convertToLong(f);
		assertEquals(4, val, 0.001);
		long l = 4L;
		val = handler.convertToLong(l);
		assertEquals(4, val, 0.001);
		String s = "4";
		val = handler.convertToLong(s);
		assertEquals(4, val);
	}
@author David Turanski
@author Luke Taylor
@author Gary Russell
spring-xd-analytics/src/test/java/org/springframework/xd/analytics/metrics/integration/GaugeHandlerTests.java