class ConcreteExtendedTimedBean extends AbstractTimedBean {

    public void anotherTimedMethod() {
    }

}

class ConcreteExtendedTimedBeanTest {

    private final static String TIMED_NAME;
    private final static String EXTENDED_TIMED_NAME;
    private static MetricID timedMID;
    private static MetricID extendedTimedMID;
    @Inject
    private ConcreteExtendedTimedBean bean;

    @Test
    @InSequence(4)
    public void callExtendedTimedMethodOnce(MetricRegistry registry) {

        Timer timer = registry.getTimer(extendedTimedMID);
        assertThat("Timer is not registered correctly", timer, notNullValue());

        // Call the timed method and assert it's been timed
        bean.anotherTimedMethod();

        // Make sure that the timer has been called
        assertThat("Timer count is incorrect", timer.getCount(), is(equalTo(1L)));
    }

}