@Test
public void containerCreationException() {

    DefaultDockerCloudClient client = createClient();
    DockerImage image = waitForImage(client);
    TestDockerClientFacade clientFacade = testCloudSupport.getClientFacade();
    clientFacade.setFailOnCreateException(new DockerClientException("Simulated exception."));
    DockerInstance instance = client.startNewInstance(image, userData);
    waitUntil(() -> instance.getStatus() == InstanceStatus.ERROR);
    waitUntil(() -> image.getInstances().isEmpty());
}