/**
* Tests toDerivative.
*/
public void toDerivativeBetweenTradeAndSettleDeprecated() {
final ZonedDateTime referenceDate = DateUtils.getUTCDate(2011, 12, 13);
final DepositCounterpart converted = DEPOSIT_CTP_DEFINITION.toDerivative(referenceDate, CURVE_NAME);
final double startTime = TimeCalculator.getTimeBetween(referenceDate, SPOT_DATE);
final double endTime = TimeCalculator.getTimeBetween(referenceDate, END_DATE);
final DepositCounterpart expected = new DepositCounterpart(EUR, startTime, endTime, NOTIONAL, NOTIONAL, RATE, DEPOSIT_AF, COUNTERPART, CURVE_NAME);
assertEquals("DepositDefinition: toDerivative", expected, converted);
}