@Test
public void testVoltageRegulatingXnode() {

    ResourceDataSource dataSource = new ResourceDataSource("frVoltageRegulatingXnode", new ResourceSet("/", "frVoltageRegulatingXnode.uct"));
    Network network = new UcteImporter().importData(dataSource, null);
    DanglingLine dl = network.getDanglingLine("FFFFFF13 XXXXXX14 1");
    assertEquals(true, dl.getGeneration().isVoltageRegulationOn());
    assertEquals(409.08, dl.getGeneration().getTargetV(), 0.01);
    assertEquals(1.0, dl.getGeneration().getTargetP(), 0.01);
    assertEquals(2.0, dl.getGeneration().getMaxP(), 0.01);
    assertEquals(-2.0, dl.getGeneration().getMinP(), 0.01);
    assertEquals(1.0, dl.getGeneration().getReactiveLimits().getMaxQ(dl.getGeneration().getTargetP()), 0.01);
    assertEquals(-1.0, dl.getGeneration().getReactiveLimits().getMinQ(dl.getGeneration().getTargetP()), 0.01);
}