DockerClientFactory { @Nonnull public abstract DockerClient createClient(DockerClientConfig config);  @Nonnull static DockerClientFactory getDefault(); @Nonnull DockerClient createClientWithAPINegotiation(DockerClientConfig config); @Nonnull abstract DockerClient createClient(DockerClientConfig config);  }
@Test public void createClient() { TestFactory clientFactory = createTestFactory(); DockerClientConfig config = new DockerClientConfig(TestDockerClient.TEST_CLIENT_URI, DockerCloudUtils.DOCKER_API_TARGET_VERSION); TestDockerClient client = (TestDockerClient) clientFactory.createClient(config); assertThat(client.getApiVersion()).isEqualTo(DockerCloudUtils.DOCKER_API_TARGET_VERSION); }