@Test
public void germanTsosImport() throws Exception {

    ReadOnlyDataSource dataSource = new ResourceDataSource("germanTsos", new ResourceSet("/", "germanTsos.uct"));
    Network network = new UcteImporter().importData(dataSource, null);
    //Check D4 is correctly parsed
    EntsoeArea ext = network.getSubstation("D4NEUR").getExtension(EntsoeArea.class);
    assertNotNull(ext);
    assertEquals(EntsoeGeographicalCode.D4, ext.getCode());
    //Check that for other countries, no extension is added
    ext = network.getSubstation("BAVLGM").getExtension(EntsoeArea.class);
    assertNull(ext);
    //Check that for "D-nodes", no extension is added
    ext = network.getSubstation("DJA_KA").getExtension(EntsoeArea.class);
    assertNull(ext);
    //Check that for a "D-node" starting with "DE", no extension is added
    ext = network.getSubstation("DEA_KA").getExtension(EntsoeArea.class);
    assertNull(ext);
}