public StartAndStopLatch expectedStarts(int expectedStarts, List<StartAndStopLatch> dependents) {
        return expectedRestarts(expectedStarts, 0, dependents);
    }
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
@param dependents     any dependent latches that must also complete in order for the
                      resulting latch to complete
@return the latch; never null
connect/runtime/src/test/java/org/apache/kafka/connect/integration/StartAndStopCounter.java