### Question:
Time { public static Date elapsedTimeToDate(long elapsedTime) { long wallTime = currentWallTime() + elapsedTime - currentElapsedTime(); return new Date(wallTime); }  static long currentElapsedTime(); static long currentWallTime(); static Date elapsedTimeToDate(long elapsedTime);  }### Answer:
@Test public void testElapsedTimeToDate() throws Exception { long walltime = Time.currentWallTime(); long elapsedTime = Time.currentElapsedTime(); Thread.sleep(200); Calendar cal = Calendar.getInstance(); cal.setTime(Time.elapsedTimeToDate(elapsedTime)); int calculatedDate = cal.get(Calendar.HOUR_OF_DAY); cal.setTime(new Date(walltime)); int realDate = cal.get(Calendar.HOUR_OF_DAY); assertEquals(calculatedDate, realDate); }