@Test
public void doFilterWithChain_ensureChainKeepsResultFromFilter() {

    DetectionFilter stubDetectionFilter = (detectorRequest, detectorResponse, chain) -> detectorResponse.setDetectorResult(detectorResult);
    DetectorContainer detectorContainer = new DetectorContainer(detector, ImmutableList.of(stubDetectionFilter));
    chainUnderTest = new DetectionFilterChain(detectorContainer);
    DetectorResponse actualDetectorResponse = new DetectorResponse();
    chainUnderTest.doFilter(detectorRequest, actualDetectorResponse);
    assertSame(detectorResult, actualDetectorResponse.getDetectorResult());
}