### Question:
IsdaCdsTradePricer { public CurrencyAmount expectedLoss( ResolvedCdsTrade trade, CreditRatesProvider ratesProvider) { return productPricer.expectedLoss(trade.getProduct(), ratesProvider); } 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_expectedLoss() { CurrencyAmount computed = PRICER.expectedLoss(TRADE, RATES_PROVIDER); CurrencyAmount expected = PRICER_PRODUCT.expectedLoss(PRODUCT, RATES_PROVIDER); assertThat(computed.getAmount()).isCloseTo(expected.getAmount(), offset(TOL)); }