@Test
public void newStandardConnection() throws Exception {

    Network network = NetworkTest1Factory.create();
    VoltageLevel vl = network.getVoltageLevel("voltageLevel1");
    VoltageLevel.NodeBreakerView topo = vl.getNodeBreakerView();
    int initialSwitchCount = topo.getSwitchCount();
    BusbarSection bb = topo.getBusbarSection("voltageLevel1BusbarSection1");
    int connectionNode = NodeBreakerTopology.newStandardConnection(bb);
    Load l = vl.newLoad()
            .setId("load2")
            .setP0(10)
            .setQ0(0)
            .setNode(connectionNode)
            .add();
    // Check the new load is correctly connected to the bus corresponding to the bus bar.
    assertEquals(bb.getTerminal().getBusView().getBus(), l.getTerminal().getBusView().getBus());
    assertEquals(initialSwitchCount + 2, topo.getSwitchCount());
}