@Test
public void printPostContingencyViolationsWithPreContingencyViolationsFiltering() throws Exception {

    StringWriter writer = new StringWriter();
    try {
        Security.printPostContingencyViolations(result, network, writer, formatterFactory, formatterConfig, null, true);
    } finally {
        writer.close();
    }
    assertEquals(String.join(System.lineSeparator(),
                             "Post-contingency limit violations",
                             "Contingency,Status,Action,Equipment (1),End,Country,Base voltage,Violation type,Violation name,Value,Limit,abs(value-limit),Loading rate %",
                             "contingency1,converge,,Equipment (1),,,,,,,,,",
                             ",,action2,,,,,,,,,,",
                             ",,,NHV1_NHV2_2,VLHV1,FR,380,CURRENT,Permanent limit,950.0000,855.0000,95.0000,105.56"),
                 writer.toString().trim());
}