final Date tomorrow = today.add(1);
final double dT = dc.yearFraction(yesterday, tomorrow);
new Settings().setEvaluationDate(yesterday);
value_m = option.NPV();
new Settings().setEvaluationDate(tomorrow);
value_p = option.NPV();
new Settings().setEvaluationDate(today);
expected.put("theta", (value_p - value_m) / dT);
// compare
for (final Entry<String, Double> it : calculated.entrySet()) {