@Nullable
    @Override
    public RecordAndPosition<E> next() {
        if (pos < num) {
            recordAndPosition.setNext(records[pos++]);
            return recordAndPosition;
        } else {
            return null;
        }
    }
@Test
    void testEmptyConstruction() {
        final ArrayResultIterator<Object> iter = new ArrayResultIterator<>();
        assertThat(iter.next()).isNull();
    }