@Test
void writeRequest() throws IOException {

    when(formatter.format(precorrelation, request)).thenReturn("request");
    unit.write(precorrelation, request);
    verify(writer).write(precorrelation, "request");
}