PeakRateCounter extends AbstractMonitor<Number> implements Counter { @Override public Number getValue(int pollerIdx) { return peakRate.getCurrent(pollerIdx); } PeakRateCounter(MonitorConfig config);   PeakRateCounter(MonitorConfig config, Clock clock); @Override Number getValue(int pollerIdx); @Override boolean equals(Object obj); @Override int hashCode(); String toString(); @Override void increment(); @Override void increment(long amount);  }
@Test public void testHasRightType() throws Exception { Tag type = newInstance("foo").getConfig().getTags().getTag(DataSourceType.KEY); assertEquals(type.getValue(), "GAUGE"); }