@Test
public void testCompareTo() {

  {
    /*
     * comparing ranges in the same index
     */
	Range r1 = new Range(1, 100);
	Range r2 = new Range(2, 100);
	AssertJUnit.assertTrue(r1.compareTo(r2) < 0);
  }
  {
    /*
     * comparing ranges in different index
     */
    Range r1 = new Range(0x100000000L, 0x10000050L);
    Range r2 = new Range(2, 100);
    AssertJUnit.assertTrue(r1.compareTo(r2) > 0);
  }
  {
	    /*
	     * comparing ranges in the same index
	     */
		Range r1 = new Range(1, 100);
		AssertJUnit.assertTrue(r1.compareTo(r1) == 0);
  }
}