@Test
public void updateExtension() throws IOError {

    LoadFlowParameters parameters = new LoadFlowParameters();
    DummyExtension extension = new DummyExtension();
    extension.setParameterDouble(2.5);
    extension.setParameterBoolean(false);
    extension.setParameterString("Hello World !");
    DummyExtension oldExtension = new DummyExtension(extension);
    parameters.addExtension(DummyExtension.class, extension);
    JsonLoadFlowParameters.update(parameters, getClass().getResourceAsStream("/LoadFlowParametersUpdate.json"));
    extension = parameters.getExtension(DummyExtension.class);
    assertEquals(oldExtension.isParameterBoolean(), extension.isParameterBoolean());
    assertNotEquals(oldExtension.getParameterDouble(), extension.getParameterDouble());
    assertNotEquals(oldExtension.getParameterString(), extension.getParameterString());
}