@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);
    Assert.assertEquals(calculatedDate, realDate);
}