### Question:
DiscountingIborFixingDepositTradePricer { public double parSpread(ResolvedIborFixingDepositTrade trade, RatesProvider provider) { return productPricer.parSpread(trade.getProduct(), provider); } DiscountingIborFixingDepositTradePricer(DiscountingIborFixingDepositProductPricer productPricer); CurrencyAmount presentValue(ResolvedIborFixingDepositTrade trade, RatesProvider provider); PointSensitivities presentValueSensitivity(ResolvedIborFixingDepositTrade trade, RatesProvider provider); double parRate(ResolvedIborFixingDepositTrade trade, RatesProvider provider); PointSensitivities parRateSensitivity(ResolvedIborFixingDepositTrade trade, RatesProvider provider); double parSpread(ResolvedIborFixingDepositTrade trade, RatesProvider provider); PointSensitivities parSpreadSensitivity(ResolvedIborFixingDepositTrade trade, RatesProvider provider); static final DiscountingIborFixingDepositTradePricer DEFAULT; }### Answer:
@Test public void test_parSpread() { double psTrade = PRICER_TRADE.parSpread(RDEPOSIT_TRADE, IMM_PROV); double psProduct = PRICER_PRODUCT.parSpread(RDEPOSIT_PRODUCT, IMM_PROV); assertThat(psTrade).isCloseTo(psProduct, offset(TOLERANCE_RATE)); }