@Test
public void testReset() throws Exception {

    String originName = "metricName1";
    String metricName = originName;
    this.counterService.increment(originName);
    metricName = LookoutSpringBootMetricsImpl.LOOKOUT_COUNTER_PREFIX + metricName;
    Metric metric = this.lookoutRegistryMetricReader.findOne(metricName);
    assertTrue(metric != null);
    this.counterService.reset(originName);
    assertTrue(this.lookoutRegistryMetricReader.findOne(metricName) == null);
}