CommonsLogFormatSink implements Sink { @Override public void write(final Precorrelation precorrelation, final HttpRequest request) { } CommonsLogFormatSink(final HttpLogWriter writer); @Override boolean isActive(); @Override void write(final Precorrelation precorrelation, final HttpRequest request); @Override void write(final Correlation correlation, final HttpRequest request,
            final HttpResponse response);  }
@Test void shouldNotWriteRequestBeforeResponse() throws IOException { final Clock clock = fixed(Instant.parse("2019-08-02T08:04:27Z"), UTC); final Precorrelation correlation = new SimplePrecorrelation("", clock); new CommonsLogFormatSink(writer) .write(correlation, MockHttpRequest.create()); verify(writer, never()).write(any(Precorrelation.class), any()); }