@Test
public void testParseProxyAddressNoPort() throws Exception {

  String address = "foo-host";
  IllegalArgumentException thrown =
      assertThrows(
          IllegalArgumentException.class, () -> HttpTransportFactory.parseProxyAddress(address));
  assertThat(thrown).hasMessageThat().contains("Proxy address 'foo-host' has no port.");
}