### Question:
AppUpdateRunner implements Runnable { boolean doUpdateCheck(long lastUpdateCheck) { if((lastUpdateCheck + TIME_GAP) < System.currentTimeMillis()) { return true; } return false; }  @Override void run();  }### Answer:
@Test public void testDoUpdateCheck() { System.out.println("doUpdateCheck"); long lastUpdateCheck = 0L; AppUpdateRunner instance = new AppUpdateRunner(); boolean expResult = true; boolean result = instance.doUpdateCheck(lastUpdateCheck); assertEquals(expResult, result); }