@Test
public void testOrder() throws IOException {

    writeToDslFile("contingency('c1') {",
            "    equipments 'NHV1_NHV2_1'",
            "}",
            "contingency('c2') {",
            "    equipments 'NHV1_NHV2_2'",
            "}");
    List<Contingency> contingencies = new GroovyDslContingenciesProvider(dslFile)
            .getContingencies(network);
    assertEquals(2, contingencies.size());
    assertEquals("c1", contingencies.get(0).getId());
    assertEquals("c2", contingencies.get(1).getId());
}