@Test
public void getLogs() {

    SwarmDockerClientFacade facade = new SwarmDockerClientFacade(dockerClient);
    TestDockerClient.Service service = new TestDockerClient.Service();
    service.getLogStreamHandler().
            fragment("txt on stdout, ", StdioType.STDOUT).
            fragment("txt on stdin, ", StdioType.STDIN).
            fragment("txt unknown std type", null);
    dockerClient.service(service);
    CharSequence logs = facade.getLogs(service.getId());
    assertThat(logs.toString()).isEqualTo("txt on stdout, txt on stdin, txt unknown std type");
}