@Test
public void getNonExistingSensitivityValueByFunctionAndVariableContingency() {

    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));
    Map<String, List<SensitivityValue>> valuesContingency = Collections.singletonMap("Contingency", values);
    SensitivityAnalysisResult results = new SensitivityAnalysisResult(true, Collections.emptyMap(), "", values, valuesContingency);
    SensitivityFunction wrongFunction = Mockito.mock(SensitivityFunction.class);
    SensitivityVariable wrongVariable = Mockito.mock(SensitivityVariable.class);
    exception.expect(NoSuchElementException.class);
    results.getSensitivityValue(wrongFunction, wrongVariable, "Contingency");
}