LongGauge extends AbstractMonitor<Long> implements Gauge<Long>, SpectatorMonitor { @Override public Long getValue(int pollerIdx) { return number.get(); } LongGauge(MonitorConfig config); void set(Long n); AtomicLong getNumber(); @Override void initializeSpectator(TagList tags); @Override boolean equals(Object o); @Override int hashCode(); @Override Long getValue(int pollerIdx); @Override String toString();  }
@Test public void testGetValue() throws Exception { LongGauge gauge = newInstance("test"); assertEquals(gauge.getValue().longValue(), 0L); gauge.set(10L); assertEquals(gauge.getValue().longValue(), 10L); }