### Question:
ServoTimer extends AbstractTimer implements ServoMeter { @Override public void record(long amount, TimeUnit unit) { if (amount >= 0) { final long nanos = unit.toNanos(amount); final double nanosSquared = (double) nanos * (double) nanos; totalTime.addAndGet(nanos); count.incrementAndGet(); servoTotal.increment(nanos); servoTotalOfSquares.increment(nanosSquared); servoCount.increment(); servoMax.update(nanos); lastUpdated.set(clock.wallTime()); } } ServoTimer(ServoRegistry r, Id id); @Override void addMonitors(List<Monitor<?>> monitors); @Override Id id(); @Override boolean hasExpired(); @Override void record(long amount, TimeUnit unit); @Override Iterable<Measurement> measure(); @Override long count(); @Override long totalTime();  }### Answer:
@Test public void testRecord() { Timer t = newTimer("foo"); t.record(42, TimeUnit.MILLISECONDS); Assertions.assertEquals(t.count(), 1L); Assertions.assertEquals(t.totalTime(), 42000000L); }