@Test
void requestURLIsTooLong() {

    var exchange = new HttpServerExchange(null);
    exchange.getRequestHeaders().put(Headers.HOST, "localhost");
    exchange.setRequestURI("/path");
    exchange.setQueryString("1234567890".repeat(100));
    var request = new RequestImpl(exchange, null);
    request.scheme = "http";
    request.port = 80;
    assertThatThrownBy(() -> parser.requestURL(request, exchange))
            .isInstanceOf(BadRequestException.class)
            .hasMessageContaining("requestURL is too long");
}