protected void waitUntilReadyAndSucceed(String shellCommand){
  final GenericContainer container=startContainerWithCommand(shellCommand);
  container.start();
  assertTrue(String.format("Expected container to be ready after timeout of %sms",WAIT_TIMEOUT_MILLIS),ready.get());
}

protected void waitUntilReadyAndSucceed ( String shellCommand ) { final GenericContainer container = startContainerWithCommand ( shellCommand ) ; container . start ( ) ; assertTrue ( String . format ( "Expected container to be ready after timeout of %sms" , WAIT_TIMEOUT_MILLIS ) , ready . get ( ) ) ; }
expects that the waitstrategy returns successfully after connection to a container with a listening port .
