@Test
public void checkAliasesCreationBeforeIidmMerging() {

    Network networkFR = loadNetworkFromResourceFile("/frTestGridForMerging.uct");
    Network networkBE = loadNetworkFromResourceFile("/beTestGridForMerging.uct");
    UcteAliasesCreation.createAliases(networkBE);
    UcteAliasesCreation.createAliases(networkFR);
    // Aliases on element name have been created
    assertNotNull(networkBE.getIdentifiable("BBBBBB11 XXXXXX11 ABCDE"));
    assertNotNull(networkFR.getIdentifiable("FFFFFF11 XXXXXX11 ABCDE"));
    Network merge = Network.create("merge", "UCT");
    merge.merge(networkBE, networkFR);
    // Aliases on element name have been kept after merge
    assertNotNull(merge.getIdentifiable("BBBBBB11 XXXXXX11 ABCDE"));
    assertNotNull(merge.getIdentifiable("FFFFFF11 XXXXXX11 ABCDE"));
    // Aliases on disappeared dangling lines have been created after merge
    assertNotNull(merge.getIdentifiable("BBBBBB11 XXXXXX11 1"));
    assertNotNull(merge.getIdentifiable("FFFFFF11 XXXXXX11 1"));
    // They are all referencing the same identifiable
    assertEquals(merge.getIdentifiable("BBBBBB11 XXXXXX11 ABCDE"), merge.getIdentifiable("FFFFFF11 XXXXXX11 ABCDE"));
    assertEquals(merge.getIdentifiable("BBBBBB11 XXXXXX11 ABCDE"), merge.getIdentifiable("BBBBBB11 XXXXXX11 1"));
    assertEquals(merge.getIdentifiable("FFFFFF11 XXXXXX11 ABCDE"), merge.getIdentifiable("FFFFFF11 XXXXXX11 1"));
}