@Test
  public void compareTimesTest() {
    assertEquals("Infinite_Time should be equal to Infinite_Time", 0,
        Utils.compareTimes(Utils.Infinite_Time, Utils.Infinite_Time));
    assertEquals("Infinite_Time should be greater than any finite time.", 1,
        Utils.compareTimes(Utils.Infinite_Time, Long.MAX_VALUE));
    assertEquals("Any finite time should be less than any Infinite_Time.", -1,
        Utils.compareTimes(Long.MAX_VALUE, Utils.Infinite_Time));
    assertEquals("Wrong comparison result for finite times", 0, Utils.compareTimes(25, 25));
    assertEquals("Wrong comparison result for finite times", -1, Utils.compareTimes(24, 25));
    assertEquals("Wrong comparison result for finite times", 1, Utils.compareTimes(25, 24));
  }
Tests for {@link Utils#compareTimes(long, long)}.
ambry-utils/src/test/java/com/github/ambry/utils/UtilsTest.java