TimeExpirable implements Expirable { static long convertToMs(int expirationInternalInMinutes) { return expirationInternalInMinutes * SECS_PER_MINUTE * MS_PER_SEC; } TimeExpirable();  TimeExpirable(int expirationIntervalInMinutes);   TimeExpirable(int expirationIntervalInMinutes, Now now); @Override boolean isExpired();  }
@Test public void testConvertToMs() throws Exception { assertThat(TimeExpirable.convertToMs(0)).describedAs("Should convert from minutes to ms.").isEqualTo(0); assertThat(TimeExpirable.convertToMs(1)).describedAs("Should convert from minutes to ms.").isEqualTo(MIN_IN_MS); }