private static final double TOLERANCE_DELTA = 2.0E+2;
@Test
public void presentValue() {
final Swap<CouponFixedAccruedCompounding, CouponONCompounded> swap = SWAPTION_LONG_REC.getUnderlyingSwap();
final CouponFixedAccruedCompounding cpn0 = swap.getFirstLeg().getNthPayment(0);
final double forwardModified = METHOD_SWAP.forwardModified(swap, CURVES);
final double strikeModified = Math.pow(1.0 + RATE, cpn0.getPaymentYearFraction()) - 1.0d;
final double num = CURVES.getCurve(CURVES_NAME[0]).getDiscountFactor(cpn0.getPaymentTime()) * NOTIONAL;
final double expiry = SWAPTION_LONG_REC.getTimeToExpiry();
final double vol = BLACK.getVolatility(expiry, SWAPTION_LONG_REC.getMaturityTime());
final EuropeanVanillaOption option = new EuropeanVanillaOption(strikeModified, expiry, SWAPTION_LONG_REC.isCall());
final BlackPriceFunction blackFunction = new BlackPriceFunction();
final BlackFunctionData dataBlack = new BlackFunctionData(forwardModified, num, vol);