### Question:
DiscountingIborFixingDepositProductPricer { public double parSpread(ResolvedIborFixingDeposit deposit, RatesProvider provider) { return forwardRate(deposit, provider) - deposit.getFixedRate(); } DiscountingIborFixingDepositProductPricer(); CurrencyAmount presentValue(ResolvedIborFixingDeposit deposit, RatesProvider provider); PointSensitivities presentValueSensitivity(ResolvedIborFixingDeposit deposit, RatesProvider provider); double parRate(ResolvedIborFixingDeposit deposit, RatesProvider provider); PointSensitivities parRateSensitivity(ResolvedIborFixingDeposit deposit, RatesProvider provider); double parSpread(ResolvedIborFixingDeposit deposit, RatesProvider provider); PointSensitivities parSpreadSensitivity(ResolvedIborFixingDeposit deposit, RatesProvider provider); static final DiscountingIborFixingDepositProductPricer DEFAULT; }### Answer:
@Test public void test_parSpread_fixing() { double parSpread1 = PRICER.parSpread(RDEPOSIT, IMM_PROV_FIX); double parSpread2 = PRICER.parSpread(RDEPOSIT, IMM_PROV_NOFIX); assertThat(parSpread1).isCloseTo(parSpread2, offset(TOLERANCE_RATE)); }