Metrics extends OpenMonBase<Timer> { @Override public void stop(Timer timer) { timer.time().stop(); }  @Override Timer start(JoinPoint.StaticPart jp); @Override void stop(Timer timer); static MetricRegistry getMetricRegistry(); static void setMetricRegistry(MetricRegistry newMetricRegistry);  }
@Test public void testStop() throws Exception { Timer mon = openMon.start(staticPart); openMon.stop(mon); assertThat(mon.getCount()).describedAs("The timer should have completed/been stopped").isEqualTo(1); }