### Question:
TimedStaticMethodWithRegistryFromStaticProperty { @Timed(name = "singleTimedStaticMethod") public static void singleTimedStaticMethod() { }  @Timed(name = "singleTimedStaticMethod") static void singleTimedStaticMethod(); static final MetricRegistry REGISTRY; }### Answer:
@Test public void callTimedStaticMethodOnce() { TimedStaticMethodWithRegistryFromStaticProperty.singleTimedStaticMethod(); MetricRegistry registry = TimedStaticMethodWithRegistryFromStaticProperty.REGISTRY; 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(1L))); }