@Test
public void validationTestForShunt() {

    Network network = HvdcTestNetwork.createLcc();
    Contingency shuntCompensatorContingency = new Contingency("Shunt contingency", new ShuntCompensatorContingency("C1_Filter1"));
    Contingency shuntCompensatorInvalidContingency = new Contingency("Shunt invalid contingency", new ShuntCompensatorContingency("C_Filter"));
    List<Contingency> validContingencies = Contingency.checkValidity(Arrays.asList(shuntCompensatorContingency, shuntCompensatorInvalidContingency), network);
    assertEquals(Arrays.asList("Shunt contingency"),
            validContingencies.stream().map(Contingency::getId).collect(Collectors.toList()));
}