@Test
public void usesSharedRegistries() {

    String registryName = "registry";
    SharedMetricRegistries.add(registryName, registry);
    final InstrumentedAppender shared = new InstrumentedAppender(registryName);
    shared.start();
    when(event.getLevel()).thenReturn(Level.INFO);
    shared.doAppend(event);
    assertThat(registry.meter(METRIC_NAME_PREFIX + ".info").getCount())
            .isEqualTo(1);
}