@Test
public void testCRangeEquals() {

  CRange c1 = new CRange();
  CRange c2 = new CRange(new byte[] { 0 });
  CRange c3 = new CRange(new byte[] { 0 }, new byte[] { 5 });
  CRange c4 = new CRange(new byte[] { 0 }, true, new byte[] { 5 }, false);
  Assert.assertFalse(c1.equals(null));
  Assert.assertFalse(c1.equals(c2));
  Assert.assertTrue(c2.equals(c2));
  Assert.assertFalse(c2.equals(c3));
  Assert.assertFalse(c3.equals(c4));
}