/**
* Test for a sensitivity with two sensitivity points.
*/
public void twoPoints() {
final DoublesPair point1 = new DoublesPair(1.25, 4.0);
final SurfaceValue alpha1 = SurfaceValue.from(point1, 12345.0);
final SurfaceValue beta1 = SurfaceValue.from(point1, 4321.0);
final SurfaceValue rho1 = SurfaceValue.from(point1, 2345.6);
final SurfaceValue nu1 = SurfaceValue.from(point1, 345.67);
final DoublesPair point2 = new DoublesPair(5.5, 9.0);
final SurfaceValue alpha2 = SurfaceValue.from(point2, 2345.0);
final SurfaceValue beta2 = SurfaceValue.from(point2, 5432.0);
final SurfaceValue rho2 = SurfaceValue.from(point2, 345.6);
final SurfaceValue nu2 = SurfaceValue.from(point2, 45.67);
final PresentValueSABRSensitivityDataBundle onePoint1 = new PresentValueSABRSensitivityDataBundle(alpha1, beta1, rho1, nu1);
final PresentValueSABRSensitivityDataBundle onePoint2 = new PresentValueSABRSensitivityDataBundle(alpha2, beta2, rho2, nu2);
final PresentValueSABRSensitivityDataBundle twoPoints = onePoint1.plus(onePoint2);
final PresentValueSABRSensitivityDataBundle node1 = SABRSensitivityNodeCalculator.calculateNodeSensitivities(onePoint1, SABR_PARAMETERS);
final PresentValueSABRSensitivityDataBundle node2 = SABRSensitivityNodeCalculator.calculateNodeSensitivities(onePoint2, SABR_PARAMETERS);