@Test public void testIsTimeToRemind() { LOG.info("Creating an upgrade response that's due for a reminder."); UpgradeResponse response = UpgradeResponse.fromJSON(TEST_JSON); assertTrue("It should be time to remind.", response.isTimeToRemind(1000L)); LOG.info("Now we shouldn't be due for one."); response.justReminded(); assertFalse("It shouldn't be time to remind.", response.isTimeToRemind(10000L)); }