@Test
public void configuredFactory() {

    Optional<SecurityAnalysisPreprocessorFactory> factory = SecurityAnalysisPreprocessors.configuredFactory(new SecurityAnalysisConfig("test"));
    assertThat(factory)
            .isPresent()
            .get()
            .isInstanceOf(TestPreprocessorFactory.class);
    factory = SecurityAnalysisPreprocessors.configuredFactory(new SecurityAnalysisConfig());
    assertThat(factory).isNotPresent();
}