@Test
public void testIsRegulatingFrequency() {

    UcteNode node = createNode();
    assertFalse(node.isRegulatingFrequency());
    node.setActivePowerGeneration(1000.0f);
    assertFalse(node.isRegulatingFrequency());
    node.setActivePowerGeneration(0.0f);
    assertFalse(node.isRegulatingFrequency());
    node.setActivePowerGeneration(-1000.0f);
    assertTrue(node.isRegulatingFrequency());
}