final double marketYield3 = 0.02997;
final Date settlementDate = new Date(30,Month.November,2004);
final double cachedPrice3 = 99.764874;
price = bond3.cleanPrice(marketYield3,
bondDayCount, Compounding.Compounded, freq, settlementDate);
if (Math.abs(price-cachedPrice3) > tolerance) {
fail("failed to reproduce cached price:"
+ "\n calculated: " + price + ""
+ "\n expected: " + cachedPrice3 + ""