@Test
public void testPlainAnnotation() {

    MetricID constructorMetricId = new MetricID(StereotypeCountedClassBean.class.getName() + ".StereotypeCountedClassBean");
    assertNotNull(metricRegistry.getCounter(constructorMetricId));
    MetricID methodMetricId = new MetricID(StereotypeCountedClassBean.class.getName() + ".foo");
    assertNotNull(metricRegistry.getCounter(methodMetricId));
    bean.foo();
    assertEquals(1, metricRegistry.getCounter(methodMetricId).getCount());
}