### Question:
IsdaCdsTradePricer { public double price( ResolvedCdsTrade trade, CreditRatesProvider ratesProvider, PriceType priceType, ReferenceData refData) { return price(trade, ratesProvider, trade.getProduct().getFixedRate(), priceType, refData); } IsdaCdsTradePricer();  IsdaCdsTradePricer(AccrualOnDefaultFormula formula); AccrualOnDefaultFormula getAccrualOnDefaultFormula(); double price(
      ResolvedCdsTrade trade,
      CreditRatesProvider ratesProvider,
      PriceType priceType,
      ReferenceData refData); PointSensitivities priceSensitivity(
      ResolvedCdsTrade trade,
      CreditRatesProvider ratesProvider,
      ReferenceData refData); double parSpread(
      ResolvedCdsTrade trade,
      CreditRatesProvider ratesProvider,
      ReferenceData refData); PointSensitivities parSpreadSensitivity(
      ResolvedCdsTrade trade,
      CreditRatesProvider ratesProvider,
      ReferenceData refData); CurrencyAmount presentValue(
      ResolvedCdsTrade trade,
      CreditRatesProvider ratesProvider,
      PriceType priceType,
      ReferenceData refData); PointSensitivities presentValueSensitivity(
      ResolvedCdsTrade trade,
      CreditRatesProvider ratesProvider,
      ReferenceData refData); CurrencyAmount presentValueOnSettle(
      ResolvedCdsTrade trade,
      CreditRatesProvider ratesProvider,
      PriceType priceType,
      ReferenceData refData); PointSensitivities presentValueOnSettleSensitivity(
      ResolvedCdsTrade trade,
      CreditRatesProvider ratesProvider,
      ReferenceData refData); CurrencyAmount rpv01OnSettle(
      ResolvedCdsTrade trade,
      CreditRatesProvider ratesProvider,
      PriceType priceType,
      ReferenceData refData); CurrencyAmount recovery01OnSettle(
      ResolvedCdsTrade trade,
      CreditRatesProvider ratesProvider,
      ReferenceData refData); JumpToDefault jumpToDefault(
      ResolvedCdsTrade trade,
      CreditRatesProvider ratesProvider,
      ReferenceData refData); CurrencyAmount expectedLoss(
      ResolvedCdsTrade trade,
      CreditRatesProvider ratesProvider); static final IsdaCdsTradePricer DEFAULT; }### Answer:
@Test public void test_price() { double computed = PRICER.price(TRADE, RATES_PROVIDER, PriceType.CLEAN, REF_DATA); double expected = PRICER_PRODUCT.price(PRODUCT, RATES_PROVIDER, SETTLEMENT_DATE, PriceType.CLEAN, REF_DATA); double computedMf = PRICER_MF.price(TRADE_NO_SETTLE_DATE, RATES_PROVIDER, PriceType.CLEAN, REF_DATA); double expectedMf = PRICER_PRODUCT_MF.price(PRODUCT, RATES_PROVIDER, SETTLEMENT_DATE, PriceType.CLEAN, REF_DATA); assertThat(computed).isCloseTo(expected, offset(TOL)); assertThat(computedMf).isCloseTo(expectedMf, offset(TOL)); }
@Test public void test_priceWithCoupon() { double coupon = 0.015; double computed = PRICER.price(TRADE_NO_SETTLE_DATE, RATES_PROVIDER, coupon, PriceType.CLEAN, REF_DATA); double expected = PRICER_PRODUCT.price(PRODUCT, RATES_PROVIDER, coupon, SETTLEMENT_DATE, PriceType.CLEAN, REF_DATA); double computedMf = PRICER_MF.price(TRADE, RATES_PROVIDER, coupon, PriceType.CLEAN, REF_DATA); double expectedMf = PRICER_PRODUCT_MF.price(PRODUCT, RATES_PROVIDER, coupon, SETTLEMENT_DATE, PriceType.CLEAN, REF_DATA); assertThat(computed).isCloseTo(expected, offset(TOL)); assertThat(computedMf).isCloseTo(expectedMf, offset(TOL)); }