@Test
void writeResponse() throws IOException {

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