// double impVol = BlackImpliedVolFormula.impliedVol(optionPriceTree.getNode(0, 0).getValue(), FORWARD, FORWARD, df, T, true);
assertEquals(vol, impVol, 1e-3);
for (int i = 0; i < 10; i++) {
final double m = -1.5 + 3.0 * i / 10.0;
final double strike = FORWARD * Math.exp(ATM_VOL * Math.sqrt(T) * m);
final OptionDefinition option = new EuropeanVanillaOptionDefinition(strike, OPTION.getExpiry(), OPTION.isCall());
optionPriceTree = BUILDER.buildOptionPriceTree(option, data, assetPriceTree);
o = new EuropeanVanillaOption(strike, T, OPTION.isCall());
optionPriceTree = BUILDER.buildOptionPriceTree(option, DATA, assetPriceTree);
impVol = BLACK_IMPLIED_VOL.getImpliedVolatility(bfd, o, optionPriceTree.getNode(0, 0).getValue());
//impVol = BlackImpliedVolFormula.impliedVol(optionPriceTree.getNode(0, 0).getValue(), FORWARD, strike, df, T, true);