ArgumentChecker.notNull(black, "Black provider");
final MulticurveProviderInterface multicurve = black.getMulticurveProvider();
final double forward = multicurve.getForwardRate(cap.getIndex(), cap.getFixingPeriodStartTime(), cap.getFixingPeriodEndTime(), cap.getFixingAccrualFactor());
final double df = multicurve.getDiscountFactor(cap.getCurrency(), cap.getPaymentTime());
final MulticurveSensitivity forwardDr = MulticurveSensitivity.ofForward(multicurve.getName(cap.getIndex()),
new ForwardSensitivity(cap.getFixingPeriodStartTime(), cap.getFixingPeriodEndTime(), cap.getFixingAccrualFactor(), 1.0));
final double dfDr = -cap.getPaymentTime() * df;
final double volatility = black.getBlackShiftParameters().getVolatility(cap.getFixingTime(), cap.getStrike());
final double shift = black.getBlackShiftParameters().getShift(cap.getFixingTime());
final EuropeanVanillaOption option = new EuropeanVanillaOption(cap.getStrike() + shift, cap.getFixingTime(), cap.isCap());
final BlackFunctionData dataBlack = new BlackFunctionData(forward + shift, 1.0, volatility);