@Test
public void createAgentMustReturnAgentId() {

    DefaultDockerClientFacade facade = new DefaultDockerClientFacade(dockerClient);
    dockerClient.localImage("resolved-image", "latest");
    NewAgentHolderInfo agentInfo = facade.createAgent(CreateAgentParameters.from(Node.EMPTY_OBJECT).
            imageName("resolved-image:latest"));
    assertThat(agentInfo.getId()).isEqualTo(dockerClient.getContainers().get(0).getId());
}