@Test
public void testCompareTo() {

	assertStrictlyNegative(this.record.compareTo(null));
	assertZero(this.record.compareTo(this.record));
	
	assertZero(this.record.compareTo(new ShapeFileIndexRecord(this.offset, this.length, false, -1)));
	assertStrictlyNegative(this.record.compareTo(new ShapeFileIndexRecord(this.offset, this.length+2, false, -1)));
	assertStrictlyPositive(this.record.compareTo(new ShapeFileIndexRecord(this.offset, this.length-2, false, -1)));
	
	assertStrictlyNegative(this.record.compareTo(new ShapeFileIndexRecord(this.offset+2, this.length, false, -1)));
	assertStrictlyNegative(this.record.compareTo(new ShapeFileIndexRecord(this.offset+2, this.length+2, false, -1)));
	assertStrictlyNegative(this.record.compareTo(new ShapeFileIndexRecord(this.offset+2, this.length-2, false, -1)));
	assertStrictlyPositive(this.record.compareTo(new ShapeFileIndexRecord(this.offset-2, this.length, false, -1)));		
	assertStrictlyPositive(this.record.compareTo(new ShapeFileIndexRecord(this.offset-2, this.length+2, false, -1)));
	assertStrictlyPositive(this.record.compareTo(new ShapeFileIndexRecord(this.offset-2, this.length-2, false, -1)));
}