### Question:
MicrometerTimer implements Timer { @Override public void update(long duration, TimeUnit unit) { timer.record(duration, unit); } MicrometerTimer(io.micrometer.core.instrument.Timer timer); @Override void update(long duration, TimeUnit unit);  }### Answer:
@Test public void testUpdate() { assertEquals(0, timer.count()); timerWrapper.update(100, TimeUnit.NANOSECONDS); assertEquals(1, timer.count()); }