### Question:
TimeRange implements Comparable<TimeRange> { @Override public int compareTo(TimeRange o) { return (int)(this.begin - o.getBegin()); } TimeRange();  TimeRange(long begin, long end); void set(long begin, long end); long getBegin(); long getEnd(); @Override int compareTo(TimeRange o); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void testCompare() { assertEquals(test2.compareTo(test1), 1321421580408l-1321421413036l); }