### Question:
TimedMethodBean { @Timed(name = "timedMethod") public void timedMethod() { }  @Timed(name = "timedMethod") void timedMethod();  }### Answer:
@Test @InSequence(2) public void callTimedMethodOnce(MetricRegistry registry) { assertThat("Timer is not registered correctly", registry.getTimers(), hasKey(TIMER_NAME)); Timer timer = registry.getTimers().get(TIMER_NAME); bean.timedMethod(); assertThat("Timer count is incorrect", timer.getCount(), is(equalTo(1L))); }