@Test
    public void testIterationOverPartialAndTruncation() throws IOException {
        testPartialWrite(0, fileRecords);
        testPartialWrite(2, fileRecords);
        testPartialWrite(4, fileRecords);
        testPartialWrite(5, fileRecords);
        testPartialWrite(6, fileRecords);
    }
Test that adding invalid bytes to the end of the log doesn't break iteration
clients/src/test/java/org/apache/kafka/common/record/FileRecordsTest.java