@Test
public void testSeek_seekenabled() throws Exception {

	ShapeFileIndexRecord obj;
	
	this.reader.seek(0);
	obj = this.reader.read();
	assertNotNull(obj);
	assertEquals(0, obj.getRecordIndex());
	assertEquals(100, obj.getOffsetInFile());
	assertEquals(128, obj.getRecordContentLength());
	this.reader.seek(2);
	obj = this.reader.read();
	assertNotNull(obj);
	assertEquals(2, obj.getRecordIndex());
	assertEquals(420, obj.getOffsetInFile());
	assertEquals(128, obj.getRecordContentLength());
	this.reader.seek(1);
	obj = this.reader.read();
	assertNotNull(obj);
	assertEquals(1, obj.getRecordIndex());
	assertEquals(236, obj.getOffsetInFile());
	assertEquals(176, obj.getRecordContentLength());
	this.reader.seek(2);
	obj = this.reader.read();
	assertNotNull(obj);
	assertEquals(2, obj.getRecordIndex());
	assertEquals(420, obj.getOffsetInFile());
	assertEquals(128, obj.getRecordContentLength());
	this.reader.seek(0);
	obj = this.reader.read();
	assertNotNull(obj);
	assertEquals(0, obj.getRecordIndex());
	assertEquals(100, obj.getOffsetInFile());
	assertEquals(128, obj.getRecordContentLength());
	this.reader.seek(18);
	obj = this.reader.read();
	assertNotNull(obj);
	assertEquals(18, obj.getRecordIndex());
	assertEquals(3860, obj.getOffsetInFile());
	assertEquals(256, obj.getRecordContentLength());
	try {
		this.reader.seek(100000);
		fail("EOFException was expected"); //$NON-NLS-1$
	}
	catch (EOFException exception) {
		// Expected exception
	}
}