Jamon extends OpenMonBase<Monitor> { @Override public void stop(Monitor mon) { mon.stop(); }  @Override Monitor start(JoinPoint.StaticPart jp); @Override void stop(Monitor mon); @Override void stop(Monitor mon, Throwable throwable); @Override void exception(JoinPoint jp, Throwable throwable);  }
@Test public void testStop() throws Exception { Monitor mon = openMon.start(staticPart); openMon.stop(mon); assertThat(mon.getLabel()).describedAs("The label should match passed in label").isEqualTo(SharedConstants.LABEL); assertThat(mon.getActive()).describedAs("The monitor should not be running").isEqualTo(0); assertThat(mon.getHits()).describedAs("The monitor should have finished and recorded hits").isEqualTo(1); }