private int countDistinctStoredSyncs(FakeOffsetSyncStore store, TopicPartition topicPartition) {
        int count = 1;
        for (int i = 1; i < OffsetSyncStore.SYNCS_PER_PARTITION; i++) {
            if (store.syncFor(topicPartition, i - 1) != store.syncFor(topicPartition, i)) {
                count++;
            }
        }
        return count;
    }
Simulate an OffsetSyncStore receiving a sequence of offset syncs as defined by their start offset and gaps.
After processing each simulated sync, assert that the store has not expired more unique syncs than the bound.
@param firstOffset First offset to give to the sync store after starting
@param steps A finite stream of gaps between syncs with some known distribution
@param maximumExpirations The maximum number of distinct syncs allowed to be expired after a single update.
connect/mirror/src/test/java/org/apache/kafka/connect/mirror/OffsetSyncStoreTest.java