EmptyContingencyListProvider implements ContingenciesProvider { @Override public List<Contingency> getContingencies(Network network) { return Collections.emptyList(); }  @Override List<Contingency> getContingencies(Network network);  }
@Test public void test() { ContingenciesProviderFactory factory = new EmptyContingencyListProviderFactory(); ContingenciesProvider provider = factory.create(); Assert.assertTrue(provider instanceof EmptyContingencyListProvider); Assert.assertEquals(0, provider.getContingencies(null).size()); }