Jamon extends OpenMonBase<Monitor> { @Override public Monitor start(JoinPoint.StaticPart jp) { return MonitorFactory.start(jp.toString()); }  @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 testStart() throws Exception { Monitor mon = openMon.start(staticPart); assertThat(mon.getLabel()).describedAs("The label should match passed in label").isEqualTo(SharedConstants.LABEL); assertThat(mon.getUnits()).describedAs("The units should be for time").isEqualTo("ms."); assertThat(mon.getActive()).describedAs("The monitor should have been started").isEqualTo(1); }