@Test
public void terminateAgentService() {

    SwarmDockerClientFacade facade = new SwarmDockerClientFacade(dockerClient);
    TestDockerClient.Service service = new TestDockerClient.Service();
    dockerClient.service(service);
    boolean agentHolderStillExists = facade.
            terminateAgentContainer(service.getId(), DockerClient.DEFAULT_TIMEOUT, false);
    assertThat(dockerClient.getServices()).isEmpty();
    assertThat(agentHolderStillExists).isFalse();
}