### Question:
DiscountingIborFixingDepositTradePricer { public CurrencyAmount presentValue(ResolvedIborFixingDepositTrade trade, RatesProvider provider) { return productPricer.presentValue(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_presentValue() { CurrencyAmount pvTrade = PRICER_TRADE.presentValue(RDEPOSIT_TRADE, IMM_PROV); CurrencyAmount pvProduct = PRICER_PRODUCT.presentValue(RDEPOSIT_PRODUCT, IMM_PROV); assertThat(pvTrade.getCurrency()).isEqualTo(pvProduct.getCurrency()); assertThat(pvTrade.getAmount()).isCloseTo(pvProduct.getAmount(), offset(TOLERANCE_PV)); }