@Test
public void writeDanglingLines() throws IOException {

    Network network = DanglingLineNetworkFactory.create();
    MemDataSource dataSource = new MemDataSource();
    export(network, dataSource);
    assertEqualsToRef(dataSource, "_network_branches", "inputs/dangling-line-branches.txt");
    assertEqualsToRef(dataSource, "_network_buses", "inputs/dangling-line-buses.txt");
    assertEqualsToRef(dataSource, "_network_limits", "inputs/dangling-line-limits.txt");
    assertEqualsToRef(dataSource, "_network_loads", "inputs/dangling-line-loads.txt");
    assertEqualsToRef(dataSource, "_network_substations", "inputs/dangling-line-substations.txt");
}