@Test public void testInit() { Registry r = new DefaultRegistry(clock); clock.setWallTime(42 * 1000L); Id id = r.createId("test"); IntervalCounter c = IntervalCounter.get(r, id); Assertions.assertEquals(0L, c.count()); Assertions.assertEquals(42.0, c.secondsSinceLastUpdate(), EPSILON); }