@Test
public void accessingACustomMeterRegistersAndReusesIt() {

    final MetricRegistry.MetricSupplier<Meter> supplier = () -> meter;
    final Meter meter1 = registry.meter("thing", supplier);
    final Meter meter2 = registry.meter("thing", supplier);
    assertThat(meter1)
            .isSameAs(meter2);
    verify(listener).onMeterAdded("thing", meter1);
}