final double maxStrike = 1.0100;
final double nbStrikes = 20;
for (int loopstrike = 0; loopstrike <= nbStrikes; loopstrike++) {
final double strike = minStrike + loopstrike * (maxStrike - minStrike) / nbStrikes;
final InterestRateFutureOptionMarginSecurityDefinition callDefinition = new InterestRateFutureOptionMarginSecurityDefinition(ERH3_DEFINITION, OPT_EXP_MAR13, strike, true);
final InterestRateFutureOptionMarginSecurity call = callDefinition.toDerivative(REFERENCE_DATE);
final double priceCall = METHOD_OPT_SEC.price(call, HW_MULTICURVES);
assertTrue("InterestRateFutureOptionMarginSecurityHullWhiteMethod: price", priceCall > 0);
final InterestRateFutureOptionMarginSecurityDefinition putDefinition = new InterestRateFutureOptionMarginSecurityDefinition(ERH3_DEFINITION, OPT_EXP_MAR13, strike, false);
final InterestRateFutureOptionMarginSecurity put = putDefinition.toDerivative(REFERENCE_DATE);
final double pricePut = METHOD_OPT_SEC.price(put, HW_MULTICURVES);
assertTrue("InterestRateFutureOptionMarginSecurityHullWhiteMethod: price", pricePut > 0);
}
}