@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 HttpLogFormatter unit = new CurlHttpLogFormatter();
    final String curl = unit.format(new SimplePrecorrelation(correlationId, systemUTC()), request);
    assertThat(curl, is("0eae9f6c-6824-11e5-8b0a-10ddb1ee7671 " +
            "curl -v -X GET 'http://localhost/test' -H 'Accept: application/json'"));
}