public StartAndStopLatch expectedStarts(int expectedStarts) {
        return expectedStarts(expectedStarts, true);
    }
Obtain a {@link StartAndStopLatch} that can be used to wait until the connector using this handle
and all tasks using {@link TaskHandle} have completed the expected number of
starts, starting the counts at the time this method is called.

<p>A test can call this method, specifying the number of times the connector and tasks
will each be stopped and started from that point (typically {@code expectedStarts(1)}).
The test should then change the connector or otherwise cause the connector to restart one or
more times, and then can call {@link StartAndStopLatch#await(long, TimeUnit)} to wait up to a
specified duration for the connector and all tasks to be started at least the specified
number of times.

<p>This method does not track the number of times the connector and tasks are stopped, and
only tracks the number of times the connector and tasks are <em>started</em>.

@param expectedStarts the minimum number of starts that are expected once this method is
                      called
@return the latch that can be used to wait for the starts to complete; never null
connect/runtime/src/test/java/org/apache/kafka/connect/integration/ConnectorHandle.java