### Question:
DiscountingIborFixingDepositTradePricer { public double parRate(ResolvedIborFixingDepositTrade trade, RatesProvider provider) { return productPricer.parRate(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_parRate() { double psTrade = PRICER_TRADE.parRate(RDEPOSIT_TRADE, IMM_PROV); double psProduct = PRICER_PRODUCT.parRate(RDEPOSIT_PRODUCT, IMM_PROV); assertThat(psTrade).isCloseTo(psProduct, offset(TOLERANCE_RATE)); }