@Test
public void successfulPull() {

    TestImage img = dockerClient.newRegistryImage("resolved-image", "latest");
    DefaultDockerClientFacade facade = new DefaultDockerClientFacade(dockerClient);
    facade.createAgent(CreateAgentParameters.from(Node.EMPTY_OBJECT).
            imageName("resolved-image:latest").
            pullStrategy(PullStrategy.PULL));
    assertThat(dockerClient.getLocalImages()).hasSize(1).containsExactly(img);
}