public void verifyRemoteLogSegmentMatchesLocal(final RemoteLogSegmentMetadata metadata, final LogSegmentData seg) {
            final Path remoteSegmentPath = expectedPaths(metadata).get(0);
            assertFileDataEquals(remoteSegmentPath, seg.logSegment());
        }
Compare the content of the remote segment with the provided {@link LogSegmentData}.
This method does not fetch from the remote storage.

@param metadata The metadata of the remote log segment and associated resources (e.g. offset and time indexes).
@param seg The segment stored on Kafka's local storage.
storage/src/test/java/org/apache/kafka/server/log/remote/storage/LocalTieredStorageTest.java