public void toDerivativeDeprecated() {
final double lastTradingTime = TimeCalculator.getTimeBetween(REFERENCE_DATE, LAST_TRADING_DATE);
final double fixingStartTime = TimeCalculator.getTimeBetween(REFERENCE_DATE, SPOT_LAST_TRADING_DATE);
final double fixingEndTime = TimeCalculator.getTimeBetween(REFERENCE_DATE, FIXING_END_DATE);
final double fixingAccrual = IBOR_INDEX.getDayCount().getDayCountFraction(SPOT_LAST_TRADING_DATE, FIXING_END_DATE);
final InterestRateFutureTransaction ERU2 = new InterestRateFutureTransaction(lastTradingTime, IBOR_INDEX, fixingStartTime, fixingEndTime, fixingAccrual, TRADE_PRICE, NOTIONAL, FUTURE_FACTOR,
QUANTITY, NAME, DISCOUNTING_CURVE_NAME, FORWARD_CURVE_NAME);
final InterestRateFutureTransaction convertedERU2 = ERU2_DEFINITION.toDerivative(REFERENCE_DATE, TRADE_PRICE, CURVES);
assertTrue("Rate future security converter", ERU2.equals(convertedERU2));
}