public static String asContent(final HttpMessage message) {
        if (message.hasContent()) {
            return StringUtil.NEWLINE + StringUtil.NEWLINE + contentForDump(message);
        }

        return "";
    }
@Test
    public void should_not_parse_content_when_content_length_not_set() {
        assertThat(asContent(DefaultHttpResponse.builder()
                .withHeaders(ImmutableMap.of(HttpHeaders.CONTENT_TYPE, "text/plain"))
                .withStringContent("")
                .build()), is(""));
    }