/**
* Test the par spread for rate.
*/
public void parSpreadRate() {
final double parSpread = ERU2_TRA.accept(PSRC, CURVES);
final InterestRateFutureTransaction futures0 = new InterestRateFutureTransaction(LAST_TRADING_TIME, EURIBOR3M, FIXING_START_TIME, FIXING_END_TIME, FIXING_ACCRUAL,
REFERENCE_PRICE - parSpread, NOTIONAL, FUTURE_FACTOR, QUANTITY, NAME, DISCOUNTING_CURVE_NAME, FORWARD_CURVE_NAME);
final CurrencyAmount pv0 = METHOD_FUT_TRA.presentValue(futures0, CURVES);
assertEquals("Future par spread rate", pv0.getAmount(), 0, TOLERANCE_PV);
final double parSpreadMQ = ERU2_TRA.accept(PSMQC, CURVES);
assertEquals("InterestRateFutureXXXDiscountingMethod: par spread", parSpread, -parSpreadMQ, TOLERANCE_PRICE);