private void assertSparseSync(FakeOffsetSyncStore store, long syncOffset, long previousOffset) {
        assertEquals(OptionalLong.of(previousOffset == -1 ? previousOffset : previousOffset + 1), store.translateDownstream(null, tp, syncOffset - 1));
        assertEquals(OptionalLong.of(syncOffset), store.translateDownstream(null, tp, syncOffset));
        assertEquals(OptionalLong.of(syncOffset + 1), store.translateDownstream(null, tp, syncOffset + 1));
        assertEquals(OptionalLong.of(syncOffset + 1), store.translateDownstream(null, tp, syncOffset + 2));
    }
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