@Override
    public String dump(final Request request) {
        HttpRequest httpRequest = (HttpRequest) request;
        return requestProtocolLine(httpRequest) +
                StringUtil.NEWLINE +
                asHeaders(httpRequest) +
                asContent(httpRequest);
    }
@Test
    public void should_dump_queries() {
        final DefaultHttpRequest request = DefaultHttpRequest.builder()
                .withUri("/hello")
                .withVersion(HttpProtocolVersion.VERSION_1_1)
                .withMethod(HttpMethod.GET)
                .withQueries(ImmutableMap.of("foo", new String[]{"fooValue"}, "bar", new String[]{"barValue"}))
                .build();

        HttpRequestDumper dumper = new HttpRequestDumper();
        final String result = dumper.dump(request);
        assertThat(result.trim(), is("GET /hello?foo=fooValue&bar=barValue HTTP/1.1"));
    }