@Test
void writeBoth() throws IOException {

    when(formatter.format(correlation, request)).thenReturn("request");
    when(formatter.format(correlation, response)).thenReturn("response");
    unit.writeBoth(correlation, request, response);
    verify(writer).write((Precorrelation) correlation, "request");
    verify(writer).write(correlation, "response");
}