@Test
public void checkAliasesCreationWhenImportingMergedFile() {

    Network network = loadNetworkFromResourceFile("/uxTestGridForMerging.uct");
    // Merged dangling lines disappeared
    assertNull(network.getIdentifiable("BBBBBB11 XXXXXX11 1"));
    assertNull(network.getIdentifiable("FFFFFF11 XXXXXX11 1"));
    // No aliases on element name
    assertNull(network.getIdentifiable("BBBBBB11 XXXXXX11 ABCDE"));
    assertNull(network.getIdentifiable("FFFFFF11 XXXXXX11 ABCDE"));
    // No aliases on disappeared dangling lines
    assertNull(network.getIdentifiable("BBBBBB11 XXXXXX11 1"));
    assertNull(network.getIdentifiable("FFFFFF11 XXXXXX11 1"));
    UcteAliasesCreation.createAliases(network);
    // Aliases on element name have been created
    assertNotNull(network.getIdentifiable("BBBBBB11 XXXXXX11 ABCDE"));
    assertNotNull(network.getIdentifiable("FFFFFF11 XXXXXX11 ABCDE"));
    // Aliases on disappeared dangling lines have been created
    assertNotNull(network.getIdentifiable("BBBBBB11 XXXXXX11 1"));
    assertNotNull(network.getIdentifiable("FFFFFF11 XXXXXX11 1"));
    // They are all referencing the same identifiable
    assertEquals(network.getIdentifiable("BBBBBB11 XXXXXX11 ABCDE"), network.getIdentifiable("FFFFFF11 XXXXXX11 ABCDE"));
    assertEquals(network.getIdentifiable("BBBBBB11 XXXXXX11 ABCDE"), network.getIdentifiable("BBBBBB11 XXXXXX11 1"));
    assertEquals(network.getIdentifiable("FFFFFF11 XXXXXX11 ABCDE"), network.getIdentifiable("FFFFFF11 XXXXXX11 1"));
}