new Handle<YieldTermStructure>(qTS),
new Handle<YieldTermStructure>(rTS),
new Handle<BlackVolTermStructure>(volTS));
final PricingEngine engine = new AnalyticBarrierEngine(stochProcess);
final BarrierOption barrierOption = new BarrierOption(value.barrierType, value.barrier, value.rebate, payoff, exercise);
barrierOption.setPricingEngine(engine);
final double calculated = barrierOption.NPV();
final double expected = value.result;
final double error = Math.abs(calculated-expected);
if (error>value.tol) {
REPORT_FAILURE("value", value.barrierType, value.barrier,
value.rebate, payoff, exercise, value.s,