@Test
public void apiNegotiationWithDefaultVersionRequested() {

    TestFactory clientFactory = createTestFactory();
    clientFactory.fixture = clt -> clt.setSupportedAPIVersion(DockerAPIVersion.parse("9.99"));
    DockerClientConfig config = new DockerClientConfig(TestDockerClient.TEST_CLIENT_URI,
            DockerAPIVersion.DEFAULT);
    TestDockerClient client = (TestDockerClient) clientFactory.createClientWithAPINegotiation(config);
    assertThat(client.getApiVersion()).isEqualTo(DockerAPIVersion.parse("9.99"));
}