@Test
	public void gaugeRetrievalSucceeds() throws Exception {
		when(gaugeRepository.findOne("mygauge")).thenReturn(new Gauge("mygauge", 55));
		mockMvc.perform(get("/metrics/gauges/mygauge").accept(MediaType.APPLICATION_JSON)).andExpect(
				status().isOk()).andExpect(jsonPath("$.name").value("mygauge")).andExpect(
						jsonPath("$.value").value(55));
	}
@author Luke Taylor
@author Ilayaperumal Gopinathan
spring-xd-dirt/src/test/java/org/springframework/xd/dirt/rest/metrics/GaugeControllerIntegrationTests.java