### Question:
DiscountingCapitalIndexedBondPaymentPeriodPricer { public PointSensitivityBuilder forecastValueSensitivity( CapitalIndexedBondPaymentPeriod period, RatesProvider ratesProvider) { if (period.getPaymentDate().isBefore(ratesProvider.getValuationDate())) { return PointSensitivityBuilder.none(); } PointSensitivityBuilder rateSensi = rateComputationFn.rateSensitivity( period.getRateComputation(), period.getStartDate(), period.getEndDate(), ratesProvider); return rateSensi.multipliedBy(period.getNotional() * period.getRealCoupon()); } DiscountingCapitalIndexedBondPaymentPeriodPricer(RateComputationFn<RateComputation> rateComputationFn); RateComputationFn<RateComputation> getRateComputationFn(); double presentValue(
      CapitalIndexedBondPaymentPeriod period,
      RatesProvider ratesProvider,
      IssuerCurveDiscountFactors issuerDiscountFactors); double presentValueWithZSpread(
      CapitalIndexedBondPaymentPeriod period,
      RatesProvider ratesProvider,
      IssuerCurveDiscountFactors issuerDiscountFactors,
      double zSpread,
      CompoundedRateType compoundedRateType,
      int periodsPerYear); double forecastValue(CapitalIndexedBondPaymentPeriod period, RatesProvider ratesProvider); PointSensitivityBuilder presentValueSensitivity(
      CapitalIndexedBondPaymentPeriod period,
      RatesProvider ratesProvider,
      IssuerCurveDiscountFactors issuerDiscountFactors); PointSensitivityBuilder presentValueSensitivityWithZSpread(
      CapitalIndexedBondPaymentPeriod period,
      RatesProvider ratesProvider,
      IssuerCurveDiscountFactors issuerDiscountFactors,
      double zSpread,
      CompoundedRateType compoundedRateType,
      int periodsPerYear); PointSensitivityBuilder forecastValueSensitivity(
      CapitalIndexedBondPaymentPeriod period,
      RatesProvider ratesProvider); void explainPresentValue(
      CapitalIndexedBondPaymentPeriod period,
      RatesProvider ratesProvider,
      IssuerCurveDiscountFactors issuerDiscountFactors,
      ExplainMapBuilder builder); void explainPresentValueWithZSpread(
      CapitalIndexedBondPaymentPeriod period,
      RatesProvider ratesProvider,
      IssuerCurveDiscountFactors issuerDiscountFactors,
      ExplainMapBuilder builder,
      double zSpread,
      CompoundedRateType compoundedRateType,
      int periodsPerYear); static final DiscountingCapitalIndexedBondPaymentPeriodPricer DEFAULT; }### Answer:
@Test public void test_forecastValueSensitivity_afterPay() { PointSensitivityBuilder computedInterp = PRICER.forecastValueSensitivity(PERIOD_INTERP, IRP_AFTER_PAY); PointSensitivityBuilder computedMonthly = PRICER.forecastValueSensitivity(PERIOD_MONTHLY, IRP_AFTER_PAY); assertThat(computedInterp).isEqualTo(PointSensitivityBuilder.none()); assertThat(computedMonthly).isEqualTo(PointSensitivityBuilder.none()); }