@Test
void shouldLogRequestWithoutQueryParameters() throws IOException {

    final String correlationId = "2bd05240-6827-11e5-bbee-10ddb1ee7671";
    final HttpRequest request = MockHttpRequest.create()
            .withOrigin(Origin.LOCAL)
            .withPath("/test")
            .withHeaders(HttpHeaders.empty()
                    .update("Accept", "application/json")
                    .update("Content-Type", "text/plain"))
            .withBodyAsString("Hello, world!");
    final String http = unit.format(new SimplePrecorrelation(correlationId, systemUTC()), request);
    assertThat(http, is("Outgoing Request: 2bd05240-6827-11e5-bbee-10ddb1ee7671\n" +
            "Remote: 127.0.0.1\n" +
            "GET http://localhost/test HTTP/1.1\n" +
            "Accept: application/json\n" +
            "Content-Type: text/plain\n" +
            "\n" +
            "Hello, world!"));
}