@Test
public void testFindOne() throws Exception {

    assertNull(lookoutRegistryMetricReader.findOne(""));
    assertTrue(this.metricReaderPublicMetrics != null
               && this.metricReaderPublicMetrics.size() > 0);
    assertNotNull(testRestTemplate);
    String endpointId = "mappings";
    String restUrl = urlHttpPrefix + "/" + endpointId;
    ResponseEntity<String> response = testRestTemplate.getForEntity(restUrl, String.class);
    assertTrue(StringUtils.isNotBlank(response.getBody()));
    //
    Metric metric = this.lookoutRegistryMetricReader
        .findOne(LookoutSpringBootMetricsImpl.LOOKOUT_GAUGE_PREFIX + "response." + endpointId);
    assertTrue(metric != null);
}