@Test
public void testHasNext() throws MalformedURLException, IOException {

    FidIndexer.generate(backshp.toURI().toURL());
    initWriter();
    for( int i = 1, j = indexFile.getRecordCount(); i < j; i++ ) {
        assertTrue(i + "th record", writer.hasNext());
        assertEquals((long) i, writer.next());
    }
}