final ISDACDSDerivative cds = loadCDS_ISDAExampleUpfrontConverter().toDerivative(pricingDate, "IR_CURVE", "HAZARD_RATE_CURVE");
final ISDACurve discountCurve = loadDiscountCurve_ISDAExampleExcel();
final ISDAApproxCDSPricingMethod method = new ISDAApproxCDSPricingMethod();
final Calendar calendar = new NoHolidayCalendar();
final double cleanPrice = method.calculateUpfrontCharge(cds, discountCurve, 0.055, true, pricingDate, stepinDate, settlementDate, calendar);
final double dirtyPrice = method.calculateUpfrontCharge(cds, discountCurve, 0.055, false, pricingDate, stepinDate, settlementDate, calendar);
final double cleanPriceError = Math.abs( (cleanPrice - 185852.587288133) / cds.getNotional() );
final double dirtyPriceError = Math.abs( (dirtyPrice - 59463.6983992436) / cds.getNotional() );