### Question:
DiscountingOvernightFutureProductPricer { public double price(ResolvedOvernightFuture future, RatesProvider ratesProvider) { double forwardRate = rateComputationFn.rate( future.getOvernightRate(), future.getOvernightRate().getStartDate(), future.getOvernightRate().getEndDate(), ratesProvider); return 1d - forwardRate; } DiscountingOvernightFutureProductPricer(RateComputationFn<RateComputation> rateComputationFn); double price(ResolvedOvernightFuture future, RatesProvider ratesProvider); PointSensitivities priceSensitivity(ResolvedOvernightFuture future, RatesProvider ratesProvider); static final DiscountingOvernightFutureProductPricer DEFAULT; }### Answer:
@Test public void test_price() { double computed = PRICER.price(FUTURE, RATES_PROVIDER); double rate = DispatchingRateComputationFn.DEFAULT.rate(FUTURE.getOvernightRate(), START_DATE, END_DATE, RATES_PROVIDER); double expected = 1d - rate; assertThat(computed).isCloseTo(expected, offset(TOL)); }