@Test
public void createAgentMustReturnWarnings() {

    DockerClientFacade facade = createFacade(dockerClient);
    dockerClient
            .localImage("resolved-image", "latest")
            .containerCreationWarning("foo")
            .containerCreationWarning("bar");
    NewAgentHolderInfo agentInfo = facade.createAgent(CreateAgentParameters.from(Node.EMPTY_OBJECT).
            imageName("resolved-image:latest"));
    assertThat(agentInfo.getWarnings()).isEqualTo(listOf("foo", "bar"));
}