PassThroughDetectionFilter implements DetectionFilter { @Override public void doFilter(@NonNull DetectorRequest detectorRequest, @NonNull DetectorResponse detectorResponse, @NonNull DetectionFilterChain chain) { chain.doFilter(detectorRequest, detectorResponse); }  @Override void doFilter(@NonNull DetectorRequest detectorRequest,
                         @NonNull DetectorResponse detectorResponse,
                         @NonNull DetectionFilterChain chain);  }
@Test public void testFilteredWithChain() { doNothing().when(mockChain).doFilter(detectorRequest, detectorResponse); filterUnderTest.doFilter(detectorRequest, detectorResponse, mockChain); verify(mockChain, times(1)).doFilter(detectorRequest, detectorResponse); }
@Test(expected = NullPointerException.class) public void testAggregate_nullRequest() { filterUnderTest.doFilter(null, detectorResponse, mockChain); }
@Test(expected = NullPointerException.class) public void testAggregate_nullResponse() { filterUnderTest.doFilter(detectorRequest, null, mockChain); }
@Test(expected = NullPointerException.class) public void testAggregate_nullChain() { filterUnderTest.doFilter(detectorRequest, detectorResponse, null); }