*/
public void iborCoupon() {
final int cpnIndex = 17; // To have payment different from end fixing.
final Payment cpn = SWAP.getSecondLeg().getNthPayment(cpnIndex);
final CouponIbor cpnIbor = (CouponIbor) cpn;
final AnnuityPaymentFixed cfe = cpn.accept(CFEC, CURVES);
assertEquals("Fixed coupon: Number of flows", 2, cfe.getNumberOfPayments());
assertEquals("Fixed coupon: Time", cpn.getPaymentTime(), cfe.getNthPayment(1).getPaymentTime(), 1E-5);
assertEquals("Fixed coupon: Amount", -NOTIONAL * (FIXED_IS_PAYER ? 1.0 : -1.0) * cpnIbor.getPaymentYearFraction() / cpnIbor.getFixingAccrualFactor(), cfe.getNthPayment(1).getAmount(), 1E-2);
assertEquals("Fixed coupon: Time", cpnIbor.getFixingPeriodStartTime(), cfe.getNthPayment(0).getPaymentTime(), 1E-5);
final double beta = CURVES.getCurve(FORWARD_CURVE_NAME).getDiscountFactor(cpnIbor.getFixingPeriodStartTime()) /