@Test(expected = DockerClientFacadeException.class)
public void failedPull() {

    DefaultDockerClientFacade facade = new DefaultDockerClientFacade(dockerClient);
    // Pulling non existing image.
    facade.createAgent(CreateAgentParameters.from(Node.EMPTY_OBJECT).
            imageName("resolved-image:latest").
            pullStrategy(PullStrategy.PULL));
}