@Test
public void apiNegotiationTargetVersionTooNew() {

    TestFactory clientFactory = createTestFactory();
    DockerClientConfig config = new DockerClientConfig(TestDockerClient.TEST_CLIENT_URI,
            DockerAPIVersion.parse("10.0"));
    Arrays.<Consumer<TestDockerClient>>asList(
            clt -> {
                clt.setMinAPIVersion(DockerAPIVersion.parse("8.0"));
                clt.setSupportedAPIVersion(DockerAPIVersion.parse("9.99"));
            },
            clt -> clt.setSupportedAPIVersion(DockerAPIVersion.parse("9.99"))
    ).forEach(fixture -> {
        clientFactory.fixture = fixture;
        TestDockerClient client = (TestDockerClient) clientFactory.createClientWithAPINegotiation(config);
        assertThat(client.getApiVersion()).isEqualTo(DockerAPIVersion.parse("9.99"));
    });
}