IndexRangeConstraint extends Constraint implements Writable { public CRange getRange() { return range; } IndexRangeConstraint(Index index, CRange range);  IndexRangeConstraint(); @Override SeekingCurrentIterator getResultIterator(); CRange getRange(); @Override String toString(); @Override void readFields(DataInput in); @Override void write(DataOutput out); @Override boolean equals(Object compareto); @Override int hashCode(); Index getIndex();  }
@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()); }