@Test
public void getSensitivityValuesByFunction() {

    List<SensitivityValue> values = new ArrayList<>();
    values.add(new SensitivityValue(factorOk, Double.NaN, Double.NaN, Double.NaN));
    values.add(new SensitivityValue(factorNok, Double.NaN, Double.NaN, Double.NaN));
    SensitivityAnalysisResult results = new SensitivityAnalysisResult(true, Collections.emptyMap(), "", values, Collections.emptyMap());
    assertEquals(1, results.getSensitivityValuesByFunction(factorOk.getFunction()).size());
    assertEquals(1, results.getSensitivityValuesByFunction(factorNok.getFunction()).size());
}