@Test
public void pullNotSupported() {

    SwarmDockerClientFacade facade = new SwarmDockerClientFacade(dockerClient);
    dockerClient.newRegistryImage("resolved-image", "latest");
    assertThatExceptionOfType(DockerClientFacadeException.class)
            .isThrownBy(() -> facade.createAgent(CreateAgentParameters.from(Node.EMPTY_OBJECT).
                    imageName("resolved-image:latest").
                    pullStrategy(PullStrategy.PULL)));
    assertThatExceptionOfType(DockerClientFacadeException.class)
            .isThrownBy(() -> facade.createAgent(CreateAgentParameters.from(Node.EMPTY_OBJECT).
                    imageName("resolved-image:latest").
                    pullStrategy(PullStrategy.PULL_IGNORE_FAILURE)));
}