* Tests the toDerivative methods.
*/
public void toDerivativeBetweenSettleAndMaturityDeprecated() {
final ZonedDateTime referenceDate = ScheduleCalculator.getAdjustedDate(SETTLE_DATE, SETTLEMENT_DAYS, CALENDAR);
final BillTransaction transactionConverted = BILL_TRA_DEFINITION.toDerivative(referenceDate, DSC_NAME, CREDIT_NAME);
final BillSecurity purchased = BILL_SEC_DEFINITION.toDerivative(referenceDate, SETTLE_DATE, DSC_NAME, CREDIT_NAME);
final BillSecurity standard = BILL_SEC_DEFINITION.toDerivative(referenceDate, DSC_NAME, CREDIT_NAME);
final BillTransaction transactionExpected = new BillTransaction(purchased, QUANTITY, 0.0, standard);
assertEquals("Bill Transaction: toDerivatives", transactionExpected, transactionConverted);
}