@Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        OffloadedSegmentSpec that = (OffloadedSegmentSpec) o;
        return sourceBrokerId == that.sourceBrokerId
                && baseOffset == that.baseOffset
                && Objects.equals(topicPartition, that.topicPartition)
                && Objects.equals(records, that.records);
    }
Specifies a remote log segment expected to be found in a second-tier storage.

@param sourceBrokerId The broker which offloaded (uploaded) the segment to the second-tier storage.
@param topicPartition The topic-partition which the remote log segment belongs to.
@param baseOffset The base offset of the remote log segment.
@param records The records *expected* in the remote log segment.
storage/src/test/java/org/apache/kafka/tiered/storage/specs/OffloadedSegmentSpec.java