@Test
public void testParseProxyAddressNoHost() throws Exception {

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