NoopMeterRegistry extends MeterRegistry { @Override protected LongTaskTimer newLongTaskTimer(Meter.Id id) { return new NoopLongTaskTimer(id); } NoopMeterRegistry(); private  NoopMeterRegistry(Clock clock);   }
@Test public void newLongTaskTimer_createsNoopLongTaskTimer() { Id expectedId = new Id("name", Tags.of("key", "value"), null, null, LONG_TASK_TIMER); LongTaskTimer result = noopMeterRegistry.newLongTaskTimer(expectedId); assertThat(result) .isInstanceOf(NoopLongTaskTimer.class); assertThat(result.getId()) .isEqualTo(expectedId); }