// Indicate that the container exited
when(docker.inspectContainer(eq(containerId1))).thenReturn(STOPPED_RESPONSE);
when(docker.createContainer(any(ContainerConfig.class), any(String.class)))
.thenReturn(createResponse2);
when(docker.inspectContainer(eq(containerId2))).thenReturn(RUNNING_RESPONSE);
waitFuture1.set(new ContainerExit(1));
// Verify that the container was restarted
verify(docker, timeout(30000)).createContainer(any(ContainerConfig.class), any(String.class));
verify(docker, timeout(30000)).startContainer(eq(containerId2), any(HostConfig.class));
verify(docker, timeout(30000)).waitContainer(containerId2);