@Test
void requestURL() {

    var exchange = new HttpServerExchange(null);
    exchange.setRequestURI("/path");
    exchange.setQueryString("key=value");
    var request = new RequestImpl(exchange, null);
    request.scheme = "https";
    request.hostName = "localhost";
    request.port = 443;
    assertThat(parser.requestURL(request, exchange))
            .isEqualTo("https://localhost/path?key=value");
}