@Test
public void apiNegotiationWithMatchingVersionProvided() {

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