public static void replayOne(
        Object target,
        ApiMessageAndVersion recordAndVersion
    ) {
        replayAll(target, Collections.singletonList(recordAndVersion));
    }
Replay a list of records.

@param target                The object to invoke the replay function on.
@param recordsAndVersions    A list of records.
metadata/src/test/java/org/apache/kafka/metadata/RecordTestUtils.java