@Test
public void testParseProxyAddressInvalidScheme() throws Exception {

  String address = "socks5://foo-host:1234";
  IllegalArgumentException thrown =
      assertThrows(
          IllegalArgumentException.class, () -> HttpTransportFactory.parseProxyAddress(address));
  assertThat(thrown)
      .hasMessageThat()
      .contains("HTTP proxy address 'socks5://foo-host:1234' has invalid scheme 'socks5'.");
}