@Test
void parseQueryParams() {

    var request = new RequestImpl(null, null);
    // undertow url decoding is disabled in core.framework.internal.web.HTTPServer.start, so the parser must decode all query param
    Map<String, Deque<String>> params = Map.of("key", new ArrayDeque<>(List.of(encode("value1 value2", UTF_8))),
            "emptyKey", new ArrayDeque<>(List.of("")));  // for use case: http://address?emptyKey=
    parser.parseQueryParams(request, params);
    assertThat(request.queryParams()).containsOnly(entry("key", "value1 value2"), entry("emptyKey", ""));
}