public UniVocityFixedDataFormat setFieldLengths(int[] fieldLengths) {
        this.fieldLengths = fieldLengths;
        return this;
    }
@Test
    public void shouldConfigureNumberOfRecordsToRead() {
        UniVocityFixedDataFormat dataFormat = new UniVocityFixedDataFormat()
                .setFieldLengths(new int[] { 1, 2, 3 })
                .setNumberOfRecordsToRead(42);

        assertEquals(Integer.valueOf(42), dataFormat.getNumberOfRecordsToRead());
        assertEquals(42, dataFormat.createAndConfigureParserSettings().getNumberOfRecordsToRead());
    }