@Test
public void testIndexRangeEquals() {

  CRange range = new CRange();
  CRange range2 = new CRange(new byte[] { 0 });
  CRange range3 = new CRange(new byte[] { 0 }, new byte[] { 3 });
  IndexRangeConstraint i1 = new IndexRangeConstraint(null, null);
  IndexRangeConstraint i2 = new IndexRangeConstraint(null, range);
  IndexRangeConstraint i3 = new IndexRangeConstraint(null, range2);
  IndexRangeConstraint i4 = new IndexRangeConstraint(null, range3);
  Assert.assertFalse(i1.equals(null));
  Assert.assertTrue(i1.equals(i1));
  Assert.assertFalse(i1.equals(i2));
  Assert.assertFalse(i3.equals(i4));
}