CompositeSink implements Sink { @Override public boolean isActive() { return sinks.stream().anyMatch(Sink::isActive); }  @Override boolean isActive(); @Override void write(final Precorrelation precorrelation, final HttpRequest request); @Override void write(final Correlation correlation, final HttpRequest request, final HttpResponse response); @Override void writeBoth(final Correlation correlation, final HttpRequest request, final HttpResponse response);  }
@Test void isActiveIfAny() { when(first.isActive()).thenReturn(true); when(second.isActive()).thenReturn(false); assertTrue(unit.isActive()); }
@Test void isActiveIfAll() { when(first.isActive()).thenReturn(true); when(second.isActive()).thenReturn(true); assertTrue(unit.isActive()); }
@Test void isInactiveIfNone() { when(first.isActive()).thenReturn(false); when(second.isActive()).thenReturn(false); assertFalse(unit.isActive()); }