### Question:
MultipleMetricsMethodWithRegistryFromBeanProperty { public MetricRegistry getRegistry() { return registry; } MultipleMetricsMethodWithRegistryFromBeanProperty(MetricRegistry registry); MetricRegistry getRegistry(); @ExceptionMetered(name = "exception") @Gauge(name = "gauge") @Metered(name = "meter") @Timed(name = "timer") String metricsMethod(); static void staticMethod();  }### Answer:
@Test public void metricsMethodNotCalledYet() { MetricRegistry registry = instance.getRegistry(); assertThat("Metrics are not registered correctly", registry.getMetrics().keySet(), is(equalTo(absoluteMetricNames()))); assertThat("Meter count is incorrect", registry.getMeters().get(absoluteMetricName("exception")).getCount(), is(equalTo(0L))); assertThat("Meter count is incorrect", registry.getMeters().get(absoluteMetricName("meter")).getCount(), is(equalTo(0L))); assertThat("Timer count is incorrect", registry.getTimers().get(absoluteMetricName("timer")).getCount(), is(equalTo(0L))); }