@Test
public void mustSetInstanceTaskId() {

    DefaultDockerCloudClient client = createClient();
    DockerImage image = waitForImage(client);
    DockerInstance instance = client.startNewInstance(image, userData);
    waitForInstanceStatus(instance, InstanceStatus.RUNNING);
    AgentHolder container = testCloudSupport.getClientFacade().getAgentHolders().get(0);
    assertThat(instance.getTaskId().get()).isEqualTo(container.getTaskId());
}