@Test
public void apiNegotiationTargetVersionTooOld() {

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