@Test
public void updateExtensions() {

    SensitivityAnalysisParameters parameters = new SensitivityAnalysisParameters();
    DummyExtension extension = new DummyExtension();
    extension.setParameterBoolean(false);
    extension.setParameterString("test");
    extension.setParameterDouble(2.8);
    DummyExtension oldExtension = new DummyExtension(extension);
    parameters.addExtension(DummyExtension.class, extension);
    JsonSensitivityAnalysisParameters.update(parameters, getClass().getResourceAsStream("/SensitivityAnalysisParametersExtensionUpdate.json"));
    DummyExtension updatedExtension = parameters.getExtension(DummyExtension.class);
    assertEquals(oldExtension.isParameterBoolean(), updatedExtension.isParameterBoolean());
    assertEquals(oldExtension.getParameterDouble(), updatedExtension.getParameterDouble(), 0.01);
    assertNotEquals(oldExtension.getParameterString(), updatedExtension.getParameterString());
}