@Test
@SuppressWarnings("ConstantConditions")
public void openAllInvalidInput() {

    // Invalid connection pool size.
    assertThatExceptionOfType(IllegalArgumentException.class).isThrownBy(() ->
            DefaultDockerClient.newInstance(createConfig(URI.create("/a/relative/uri"), false)));
    assertThatExceptionOfType(IllegalArgumentException.class).isThrownBy(() ->
            DefaultDockerClient.newInstance(createConfig(URI.create("tcp:an.opaque.url"), false)));
    // Unknown scheme.
    assertThatExceptionOfType(IllegalArgumentException.class).isThrownBy(() ->
            DefaultDockerClient.newInstance(createConfig(URI.create("http://127.0.0.1:2375"), false)));
}