public StartAndStopLatch expectedStarts(int expectedStarts) {
        return expectedRestarts(expectedStarts, 0);
    }
Obtain a {@link StartAndStopLatch} that can be used to wait until the expected number of starts
has been completed.

@param expectedStarts the expected number of starts
@return the latch; never null
connect/runtime/src/test/java/org/apache/kafka/connect/integration/StartAndStopCounter.java