assertEquals("ParameterSensitivity: getAllNamesCurrency", sensitivity1.getSensitivity(NAME_2), sensitivity1.getSensitivity(NAME_2));
}
@Test
public void equalHash() {
SimpleParameterSensitivity sensitivity = new SimpleParameterSensitivity();
sensitivity = sensitivity.plus(NAME_1, SENSITIVITY_1_1);
sensitivity = sensitivity.plus(NAME_2, SENSITIVITY_2_1);
SimpleParameterSensitivity modified = new SimpleParameterSensitivity();
modified = modified.plus(NAME_2, SENSITIVITY_2_1);
modified = modified.plus(NAME_2, SENSITIVITY_2_1);
assertEquals("ParameterSensitivity: equalHash", sensitivity, sensitivity);
assertEquals("ParameterSensitivity: equalHash", sensitivity.hashCode(), sensitivity.hashCode());
assertFalse("ParameterSensitivity: equalHash", sensitivity.equals(SENSITIVITY_1_1));
assertFalse("ParameterSensitivity: equalHash", sensitivity.equals(modified));
}