@Test
public void testDropwizardTime() {

    MetricRegistry reg = new MetricRegistry();
    DropWizardMetricsRegistry dwreg = new DropWizardMetricsRegistry(Clock.SYSTEM, reg);
    Timer timer = dwreg.timer(dwreg.createId("a.b.c"));
    timer.record(123, TimeUnit.SECONDS);
    com.codahale.metrics.Timer timer2 = reg.timer("a.b.c");
    System.out.println(timer2.getCount());
    Assert.assertEquals(1, timer2.getCount());
}