assertEquals(metric.getConfig(), expected);
}
@Test
public void testSlowMonitor() throws Exception {
MonitorRegistry registry = new BasicMonitorRegistry();
registry.register(new SlowCounter("slow"));
registry.register(Monitors.newCounter("test"));
MetricPoller poller = new MonitorRegistryMetricPoller(registry);
long start = System.currentTimeMillis();
Metric metric = poller.poll(MATCH_ALL).get(0);
long end = System.currentTimeMillis();