NoopMeterRegistry extends MeterRegistry { @Override protected DistributionSummary newDistributionSummary(Meter.Id id, DistributionStatisticConfig distributionStatisticConfig, double scale) { return new NoopDistributionSummary(id); } NoopMeterRegistry(); private  NoopMeterRegistry(Clock clock);   }
@Test public void newDistributionSummary_createsNoopDistributionSummary() { Id expectedId = new Id("name", Tags.of("key", "value"), null, null, DISTRIBUTION_SUMMARY); DistributionSummary result = noopMeterRegistry.newDistributionSummary(expectedId, DistributionStatisticConfig.NONE, 0.0); assertThat(result) .isInstanceOf(NoopDistributionSummary.class); assertThat(result.getId()) .isEqualTo(expectedId); }