@Test
public void wrappedContingenciesProviderFactory() {

    SecurityAnalysisPreprocessorFactory factory = SecurityAnalysisPreprocessors.wrap(new EmptyContingencyListProviderFactory());
    assertNotNull(factory);
    SecurityAnalysisPreprocessor preprocessor = factory.newPreprocessor(ByteSource.empty());
    SecurityAnalysisInput input = new SecurityAnalysisInput(Mockito.mock(Network.class), "");
    preprocessor.preprocess(input);
    assertThat(input.getContingenciesProvider())
            .isNotNull()
            .isInstanceOf(EmptyContingencyListProvider.class);
}