DoubleGauge extends AbstractMonitor<Double> implements Gauge<Double>, SpectatorMonitor { public void set(Double n) { spectatorGauge.set(n); number.set(n); } DoubleGauge(MonitorConfig config); void set(Double n); AtomicDouble getNumber(); @Override void initializeSpectator(TagList tags); @Override boolean equals(Object o); @Override int hashCode(); @Override Double getValue(int pollerIdx); @Override String toString();  }
@Test public void testSet() throws Exception { DoubleGauge gauge = newInstance("test"); gauge.set(10.0); assertEquals(gauge.getValue().doubleValue(), 10.0); }