}
@Test
public void anExceptionMeteredAnnotatedMethod_WithNoMetricName() throws Exception {
final Meter metric = registry.getMeters().get(name(InstrumentedWithExceptionMetered.class,
"explodeForUnnamedMetric", DEFAULT_NAME_SUFFIX));
assertMetricIsSetup(metric);
assertThat("Metric intialises to zero",
metric.getCount(),
is(0L));
try {
instance.explodeForUnnamedMetric();
fail("Expected an exception to be thrown");
} catch (RuntimeException e) {
// Swallow the expected exception
}
assertThat("Metric is marked",
metric.getCount(),
is(1L));
}