@Test
public void testReadWrite() throws Exception {

  IndexRangeConstraint ct = new IndexRangeConstraint(new MockIndex(),
      new CRange(new byte[] { 2 }));
  ct = (IndexRangeConstraint) Utils.testReadWrite(ct);
  assertEquals(new CRange(new byte[] { 2 }), ct.getRange());
}