// Verify we didn't wait too long, we should only wait 1 second but allow up to
// 10 to make it less likely to have spurious test failures
assertTrue(end - start < TEN_SECONDS);
MonitorConfig expected = MonitorConfig.builder("test")
.withTag(DataSourceType.COUNTER)
.build();
assertEquals(metric.getConfig(), expected);
}