public static <R1, R2, K, V> RecordsKeyValueMatcher<R1, R2, K, V> correspondTo(Collection<R1> expectedRecords,
                                                                                   TopicPartition topicPartition,
                                                                                   Serde<K> keySerde,
                                                                                   Serde<V> valueSerde) {
        return new RecordsKeyValueMatcher<>(expectedRecords, topicPartition, keySerde, valueSerde);
    }
Provides a matcher which compares the key and value of a sequence of records with those of
the expectedRecords sequence, in order.

@param expectedRecords The records expected.
@param topicPartition The topic-partition which the records belong to.
@param keySerde The [[Serde]] for the keys of the records.
@param valueSerde The [[Serde]] for the values of the records.
@tparam R1 The type of records used to formulate the expectations.
@tparam R2 The type of records compared against the expectations.
@tparam K The type of the record keys.
@tparam V The type of the record values.
storage/src/test/java/org/apache/kafka/tiered/storage/utils/RecordsKeyValueMatcher.java