@Test
public void testIteratorClass() throws Exception {

	Iterator<SubNumberStub> iterator = this.reader.iterator(SubNumberStub.class);
	int recordCount = (TEST_FILE_SIZE - 100) / 8;
	SubNumberStub obj;
	
	for(int i=0, j=1; i<recordCount/2; ++i, j+=2) {
		assertTrue(iterator.hasNext(), "record #"+Integer.toString(i)); //$NON-NLS-1$
		obj = iterator.next();
		assertNotNull(obj, "record #"+Integer.toString(i)); //$NON-NLS-1$
		assertEquals(j, obj.intValue(), "record #"+Integer.toString(i)); //$NON-NLS-1$
	}
	
	assertFalse(iterator.hasNext());
}