@Test
public void mustSetInstanceAgentHolderId() {

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