@Test
public void createAgentMustReturnServiceId() {

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