@Test
public void testDisconnectedGenerator() {

    g3.scale(network, 100.0);
    assertTrue(network.getGenerator("g3").getTerminal().isConnected());
    assertEquals(100.0, network.getGenerator("g3").getTargetP(), 0.0);
    assertEquals(1.0, network.getGenerator("g3").getTargetV(), 0.0);
}