@Test
public void testHasExpired_SimulatingNonExpiration() throws Exception {

    TimeExpirable.Now now = mock(TimeExpirable.Now.class);
    long time = System.currentTimeMillis();
    when(now.now()).thenReturn(time);
    TimeExpirable expirable = new TimeExpirable(1, now);
    when(now.now()).thenReturn(time + 100);
    assertThat(expirable.isExpired()).isFalse();
}