### Question:
AtlasMaxGauge extends AtlasMeter implements Gauge { @Override void measure(MeasurementConsumer consumer) { double v = value.poll(); consumer.accept(stat, value.timestamp(), v); } AtlasMaxGauge(Registry registry, Id id, Clock clock, long ttl, long step); @Override void set(double v); @Override double value();  }### Answer:
@Test public void measureTimestamp() { long start = clock.wallTime(); clock.setWallTime(start + step); Assertions.assertEquals(start + step, gauge.measure().iterator().next().timestamp()); clock.setWallTime(start + step * 2); Assertions.assertEquals(start + step * 2, gauge.measure().iterator().next().timestamp()); }