### Question:
TimeStampComparator { public static boolean isInTheFuture(Timestamp ts1, Timestamp ts2) { long ts1MilliSeconds = ts1.getTime(); long ts2MilliSeconds = ts2.getTime(); if(ts2MilliSeconds > ts1MilliSeconds) return true; else return false; }  static boolean isInTheFuture(Timestamp ts1, Timestamp ts2);  }### Answer:
@Test public void comparingTwoTimestampsTest() { Timestamp ts1 = new Timestamp(System.currentTimeMillis()); Timestamp ts2 = new Timestamp(System.currentTimeMillis() + 1l); assertTrue(TimeStampComparator.isInTheFuture(ts1, ts2)); }