@Test
void shouldLogCompleteResponse() throws IOException {

    final String correlationId = "53de2640-677d-11e5-bc84-10ddb1ee7671";
    final HttpResponse response = create()
            .withProtocolVersion("HTTP/1.0")
            .withOrigin(LOCAL)
            .withHeaders(HttpHeaders.of("Date", "Tue, 15 Nov 1994 08:12:31 GMT"))
            .withContentType("application/xml")
            .withBodyAsString("<success>true<success>");
    final String format = unit.format(correlation(correlationId, ofMillis(125)), response);
    assertThat(format, stringContainsInOrder(
            "origin=local",
            "type=response",
            "correlation=53de2640-677d-11e5-bc84-10ddb1ee7671",
            "duration=125",
            "protocol=HTTP/1.0",
            "status=200",
            "headers={",
            "Date=[Tue, 15 Nov 1994 08:12:31 GMT]",
            "}",
            "body=<success>true<success>"
    ));
}