@Test
public void validationTestForSVC() {

    Network network = SvcTestCaseFactory.create();
    Contingency staticVarCompensatorContingency = new Contingency("SVC contingency", new StaticVarCompensatorContingency("SVC2"));
    Contingency staticVarCompensatorInvalidContingency = new Contingency("SVC invalid contingency", new StaticVarCompensatorContingency("SVC"));
    List<Contingency> validContingencies = Contingency.checkValidity(Arrays.asList(staticVarCompensatorContingency, staticVarCompensatorInvalidContingency), network);
    assertEquals(Arrays.asList("SVC contingency"),
            validContingencies.stream().map(Contingency::getId).collect(Collectors.toList()));
}