### Question:
DiscountingCmsLegPricer { public PointSensitivityBuilder presentValueSensitivity( ResolvedCmsLeg cmsLeg, RatesProvider ratesProvider) { return cmsLeg.getCmsPeriods() .stream() .map(cmsPeriod -> cmsPeriodPricer.presentValueSensitivity(cmsPeriod, ratesProvider)) .reduce((p1, p2) -> p1.combinedWith(p2)) .get(); } DiscountingCmsLegPricer(DiscountingCmsPeriodPricer cmsPeriodPricer); CurrencyAmount presentValue(
      ResolvedCmsLeg cmsLeg,
      RatesProvider ratesProvider); PointSensitivityBuilder presentValueSensitivity(
      ResolvedCmsLeg cmsLeg,
      RatesProvider ratesProvider); CurrencyAmount currentCash(
      ResolvedCmsLeg cmsLeg,
      RatesProvider ratesProvider);  }### Answer:
@Test public void test_presentValueSensitivity_ended() { PointSensitivityBuilder computed = LEG_PRICER.presentValueSensitivity(COUPON_LEG, RATES_PROVIDER_ENDED); assertThat(computed).isEqualTo(PointSensitivityBuilder.none()); }