@Test
public void registryAuthFailed() {

    registryCredentials = DockerRegistryCredentials.from("user", "password");
    DefaultDockerCloudClient client = createClient();
    DockerImage image = waitForImage(client);
    dockerImageResolver.image("registry-only-image");
    testCloudSupport.getClientFacade().
            registryImage("registry-only-image").
            registryCredentials(DockerRegistryCredentials.from("user", "password"));
    DockerInstance instance = client.startNewInstance(image, userData);
    waitUntil(() -> instance.getStatus() == InstanceStatus.RUNNING);
}