@Test
public void testMaximumValue() {

    assertEquals(100.0, g1.maximumValue(network), 0.0);
    assertEquals(100.0, g1.maximumValue(network, GENERATOR), 0.0);
    assertEquals(0, g1.maximumValue(network, LOAD), 0.0);
    assertEquals(100.0, g2.maximumValue(network, GENERATOR), 0.0);
    assertEquals(0, g2.maximumValue(network, LOAD), 0.0);
    assertEquals(80, g4.maximumValue(network, GENERATOR), 0);
    assertEquals(0, g4.maximumValue(network, LOAD), 0);
    assertEquals(100, g5.maximumValue(network, GENERATOR), 0);
    assertEquals(-20, g5.maximumValue(network, LOAD), 0);
}