@Test
public void testWithDisconnectedLines() {

    Network network = EurostagTutorialExample1Factory.create();
    Line line1 = network.getLine(NHV1_NHV2_1);
    line1.getTerminal1().disconnect();
    line1.getTerminal2().disconnect();
    Line line2 = network.getLine(NHV1_NHV2_2);
    line2.getTerminal1().disconnect();
    line2.getTerminal2().disconnect();
    NetworkReducer reducer = NetworkReducer.builder()
            .withNetworkPredicate(IdentifierNetworkPredicate.of("P1"))
            .build();
    reducer.reduce(network);
    Load load1 = network.getLoad(NHV1_NHV2_1);
    assertEquals(0.0, load1.getP0(), 0.0);
    assertEquals(0.0, load1.getQ0(), 0.0);
    assertTrue(Double.isNaN(load1.getTerminal().getP()));
    assertTrue(Double.isNaN(load1.getTerminal().getQ()));
    Load load2 = network.getLoad(NHV1_NHV2_2);
    assertEquals(0.0, load2.getP0(), 0.0);
    assertEquals(0.0, load2.getQ0(), 0.0);
    assertTrue(Double.isNaN(load2.getTerminal().getP()));
    assertTrue(Double.isNaN(load2.getTerminal().getQ()));
}