@Test
public void testParseProxyAddressWithPath() throws Exception {

  String address = "foo-host:1234/some/path";
  IllegalArgumentException thrown =
      assertThrows(
          IllegalArgumentException.class, () -> HttpTransportFactory.parseProxyAddress(address));
  assertThat(thrown)
      .hasMessageThat()
      .contains("Invalid proxy address 'foo-host:1234/some/path'.");
}