### Question:
ForwardOvernightCompoundedAnnualRateComputationFn implements RateComputationFn<OvernightCompoundedAnnualRateComputation> { @Override public PointSensitivityBuilder rateSensitivity( OvernightCompoundedAnnualRateComputation computation, LocalDate startDate, LocalDate endDate, RatesProvider provider) { OvernightIndexRates rates = provider.overnightIndexRates(computation.getIndex()); ForwardOvernightCompoundedAnnualRateComputationFn.ObservationDetails details = new ForwardOvernightCompoundedAnnualRateComputationFn.ObservationDetails(computation, rates); return details.calculateRateSensitivity(); } ForwardOvernightCompoundedAnnualRateComputationFn(); @Override double rate(
      OvernightCompoundedAnnualRateComputation computation,
      LocalDate startDate,
      LocalDate endDate,
      RatesProvider provider); @Override PointSensitivityBuilder rateSensitivity(
      OvernightCompoundedAnnualRateComputation computation,
      LocalDate startDate,
      LocalDate endDate,
      RatesProvider provider); @Override double explainRate(
      OvernightCompoundedAnnualRateComputation computation,
      LocalDate startDate,
      LocalDate endDate,
      RatesProvider provider,
      ExplainMapBuilder builder); static final ForwardOvernightCompoundedAnnualRateComputationFn DEFAULT; }### Answer:
@Test public void test_rateAllFixedSensitivity() { LocalDate[] valuationDate = {date(2015, 1, 16), date(2015, 1, 17)}; OvernightCompoundedAnnualRateComputation ro = OvernightCompoundedAnnualRateComputation.of(BRL_CDI, FIXING_START_DATE, FIXING_END_DATE, REF_DATA); OvernightIndexRates mockRates = mock(OvernightIndexRates.class); when(mockRates.getIndex()).thenReturn(BRL_CDI); SimpleRatesProvider simpleProv = new SimpleRatesProvider(mockRates); LocalDateDoubleTimeSeriesBuilder tsb = LocalDateDoubleTimeSeries.builder(); int lastFixing = 7; for (int i = 0; i < lastFixing; i++) { tsb.put(FIXING_DATES[i], FIXING_RATES[i]); } when(mockRates.getFixings()).thenReturn(tsb.build()); for (int loopvaldate = 0; loopvaldate < valuationDate.length; loopvaldate++) { when(mockRates.getValuationDate()).thenReturn(valuationDate[loopvaldate]); PointSensitivityBuilder sensitivityComputed = OBS_BRL_FWD_ONCMP.rateSensitivity(ro, DUMMY_ACCRUAL_START_DATE, DUMMY_ACCRUAL_END_DATE, simpleProv); assertThat(sensitivityComputed).isEqualTo(PointSensitivityBuilder.none()); } }