source: class SwarmDockerClientFacadeTest extends BaseDockerClientFacade {
  
      @Test
      public void createAgentMustReturnServiceName() {
  
target:         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.getName()).isEqualTo(dockerClient.getServices().get(0).getName());
      }
  
  }