@Test
public void listAgentContainersMustListMultipleContainers() {

    DefaultDockerClientFacade facade = new DefaultDockerClientFacade(dockerClient);
    TestImage image1 = dockerClient.newLocalImage("image-1", "latest");
    TestImage image2 = dockerClient.newLocalImage("image-2", "latest");
    assertThat(facade.listAgentHolders("foo", "bar")).isEmpty();
    Container validContainer1 = new Container().
            label("foo", "bar").
            label(DockerCloudUtils.SOURCE_IMAGE_ID_LABEL, image1.getId()).
            image(image1);
    Container validContainer2 = new Container().
            label("foo", "bar").
            label(DockerCloudUtils.SOURCE_IMAGE_ID_LABEL, image2.getId()).
            image(image2);
    dockerClient.container(validContainer1).container(validContainer2);
    List<String> containerIds = facade.listAgentHolders("foo", "bar").stream().
            map(AgentHolderInfo::getId).
            collect(Collectors.toList());
    assertThat(containerIds).containsExactlyInAnyOrder(validContainer1.getId(), validContainer2.getId());
}