@Test
public void serviceLabels() {

    SwarmDockerClientFacade facade = new SwarmDockerClientFacade(dockerClient);
    facade.createAgent(CreateAgentParameters.from(Node.EMPTY_OBJECT).
            imageName("resolved-image:latest").
            label("key1", "value1").
            label("key2", "value2"));
    List<TestDockerClient.Service> services = dockerClient.getServices();
    assertThat(services).hasSize(1);
    assertThat(services.get(0).getLabels()).
            containsEntry("key1", "value1").
            containsEntry("key2", "value2");
}