def METHOD_NAME(httpserver):
    httpserver.expect_request("/base-path/relative-path").respond_with_data("Reached Mock Server.")
    gateway_listen = HostAndPort(host="127.0.0.1", port=get_free_tcp_port())
    proxy_server = ProxyServer(httpserver.url_for("/base-path"), gateway_listen, use_ssl=True)
    with server_context(proxy_server):
        # Test that only the base path is added by the proxy
        response = requests.get(
            f"https://localhost.localstack.cloud:{gateway_listen.port}/relative-path", data="data"
        )
        assert response.text == "Reached Mock Server."