@Test
public void oldDataCleanedWhenIntervalExpired() {

    IntervalCount intervalCount = new IntervalCount(100L);
    assertEquals(1L, intervalCount.resetIfExpiredAndTick());
    Clock.shift(101);
    assertEquals(1L, intervalCount.resetIfExpiredAndTick());
}