@Test
public void testDropwizardOverMaxCount() {

    MetricRegistry reg = new MetricRegistry();
    LookoutConfig lookoutConfig = new LookoutConfig();
    lookoutConfig.setProperty(LookoutConfig.LOOKOUT_MAX_METRICS_NUMBER, 1);
    DropWizardMetricsRegistry dwreg = new DropWizardMetricsRegistry(Clock.SYSTEM, reg,
        lookoutConfig);
    Counter counter1 = dwreg.counter(dwreg.createId("a.b"));
    Counter counter2 = dwreg.counter(dwreg.createId("a.b.c"));
    System.out.println(counter2.getClass().getCanonicalName());
    Assert.assertTrue(counter2.getClass().getCanonicalName().contains("NoopCounter"));
}