@Test
void shouldLogRequestWithoutBody() throws IOException {

    final String correlationId = "0eae9f6c-6824-11e5-8b0a-10ddb1ee7671";
    final HttpRequest request = MockHttpRequest.create()
            .withPath("/test")
            .withHeaders(HttpHeaders.of("Accept", "application/json"));
    final String http = unit.format(new SimplePrecorrelation(correlationId, systemUTC()), request);
    assertThat(http, is("Incoming Request: 0eae9f6c-6824-11e5-8b0a-10ddb1ee7671\n" +
            "Remote: 127.0.0.1\n" +
            "GET http://localhost/test HTTP/1.1\n" +
            "Accept: application/json"));
}