/**
* Tests the toDerivative methods.
*/
public void toDerivativeBetweenJustBeforeMaturityDeprecated() {
final ZonedDateTime referenceDate = ScheduleCalculator.getAdjustedDate(END_DATE, -1, 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);
}