### Question:
TimedMethodWithRegistryFromBeanProperty { public MetricRegistry getRegistry() { return registry; } TimedMethodWithRegistryFromBeanProperty(MetricRegistry registry); MetricRegistry getRegistry(); @Timed(name = "singleTimedMethod") void singleTimedMethod();  }### Answer:
@Test public void timedMethodNotCalledYet() { MetricRegistry registry = instance.getRegistry(); assertThat("Timer is not registered correctly", registry.getTimers(), hasKey(TIMER_NAME)); Timer timer = registry.getTimers().get(TIMER_NAME); assertThat("Timer count is incorrect", timer.getCount(), is(equalTo(0L))); }