@Test
public void testChainedCursor() {

    RecordCursorIterator<Long> cursor = newCursor(null).asIterator();
    long i = 0L;
    while (cursor.hasNext()) {
        assertEquals((Long) i, cursor.next());
        ++i;
    }
    assertEquals(25, i);
}