### Question:
LongTaskTimer implements com.netflix.spectator.api.LongTaskTimer { public static LongTaskTimer get(Registry registry, Id id) { ConcurrentMap<Id, Object> state = registry.state(); Object obj = Utils.computeIfAbsent(state, id, i -> { LongTaskTimer timer = new LongTaskTimer(registry, id); PolledMeter.using(registry) .withId(id) .withTag(Statistic.activeTasks) .monitorValue(timer, LongTaskTimer::activeTasks); PolledMeter.using(registry) .withId(id) .withTag(Statistic.duration) .monitorValue(timer, t -> t.duration() / NANOS_PER_SECOND); return timer; }); if (!(obj instanceof LongTaskTimer)) { Utils.propagateTypeError(registry, id, LongTaskTimer.class, obj.getClass()); obj = new LongTaskTimer(new NoopRegistry(), id); } return (LongTaskTimer) obj; } private  LongTaskTimer(Registry registry, Id id); static LongTaskTimer get(Registry registry, Id id); @Override Id id(); @Override boolean hasExpired(); @Override long start(); @Override long stop(long task); @Override long duration(long task); @Override long duration(); @Override int activeTasks(); @Override Iterable<Measurement> measure();  }### Answer:
@Test public void usingNoopRegistry() { System.setProperty("spectator.api.propagateWarnings", "true"); Registry noop = new NoopRegistry(); LongTaskTimer.get(noop, noop.createId("task")); }