*/
public void toDerivativesIborNotFixedDeprecated() {
final AnnuityCouponIborRatchetDefinition annuityDefinition = AnnuityCouponIborRatchetDefinition.withFirstCouponIborGearing(SETTLEMENT_DATE, ANNUITY_TENOR, NOTIONAL, IBOR_INDEX, IS_PAYER,
MAIN_COEF, FLOOR_COEF, CAP_COEF, CALENDAR);
final DoubleTimeSeries<ZonedDateTime> fixingTS = ImmutableZonedDateTimeDoubleTimeSeries.of(REFERENCE_DATE.minusDays(1), 0.02);
final AnnuityCouponIborRatchet annuity = annuityDefinition.toDerivative(REFERENCE_DATE, fixingTS, CURVES_NAMES);
final Coupon[] cpn = new Coupon[NB_COUPON];
cpn[0] = ((CouponIborGearingDefinition) annuityDefinition.getNthPayment(0)).toDerivative(REFERENCE_DATE, fixingTS, CURVES_NAMES);
for (int loopcpn = 1; loopcpn < NB_COUPON; loopcpn++) {
cpn[loopcpn] = (Coupon) annuityDefinition.getNthPayment(loopcpn).toDerivative(REFERENCE_DATE, CURVES_NAMES);
}
final AnnuityCouponIborRatchet annuity2 = new AnnuityCouponIborRatchet(cpn);
for (int loopcpn = 1; loopcpn < NB_COUPON; loopcpn++) {
assertEquals("Annuity Ratchet Ibor: toDerivatives " + loopcpn, annuity.getNthPayment(loopcpn), annuity2.getNthPayment(loopcpn));
}
}