protected void waitUntilReadyAndTimeout(GenericContainer<?> container) {
        // start() blocks until successful or timeout
        assertThat(catchThrowable(container::start))
            .as("an exception is thrown when timeout occurs (" + WAIT_TIMEOUT_MILLIS + "ms)")
            .isInstanceOf(ContainerLaunchException.class);
    }
Expects that the WaitStrategy throws a {@link RetryCountExceededException} after unsuccessful connection
to a container with a listening port.

@param container the container to start
core/src/test/java/org/testcontainers/junit/wait/strategy/AbstractWaitStrategyTest.java