* Tests the toDerivative method when the reference date is after the premium settlement.
*/
public void toDerivativeAfterSettlementDeprecated() {
final ZonedDateTime referenceDate = PREMIUM_DATE.plusDays(1);
final InterestRateFutureOptionPremiumTransaction transactionConverted = OPTION_TRANSACTION.toDerivative(referenceDate, CURVES);
final InterestRateFutureOptionPremiumSecurity security = OPTION_EDU2.toDerivative(referenceDate, CURVES);
final double premiumTime = 0.0;
final double price = 0.0; // The payment is in the past and is represented by a 0 payment today.
final InterestRateFutureOptionPremiumTransaction transaction = new InterestRateFutureOptionPremiumTransaction(security, QUANTITY, premiumTime, price);
assertEquals("Option on future: to derivative", transaction, transactionConverted);
}