CommonsLogFormatSink implements Sink { @Override public boolean isActive() { return writer.isActive(); } 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 shouldDelegateActive() { final Sink unit = new CommonsLogFormatSink(writer); assertFalse(unit.isActive()); }
@Test void shouldDelegateInactive() { final Sink unit = new CommonsLogFormatSink(writer); when(writer.isActive()).thenReturn(true); assertTrue(unit.isActive()); }