Metrics extends OpenMonBase<Timer> { @Override public Timer start(JoinPoint.StaticPart jp) { return metrics.timer(name(jp.toString())); }  @Override Timer start(JoinPoint.StaticPart jp); @Override void stop(Timer timer); static MetricRegistry getMetricRegistry(); static void setMetricRegistry(MetricRegistry newMetricRegistry);  }
@Test public void testStart() throws Exception { Timer mon = openMon.start(staticPart); assertThat(mon.getCount()).describedAs("The timer shouldn't have completed").isEqualTo(0); }