### Question:
DiscountingDsfProductPricer { public double price(ResolvedDsf future, RatesProvider ratesProvider) { ResolvedSwap swap = future.getUnderlyingSwap(); Currency currency = future.getCurrency(); CurrencyAmount pvSwap = swapPricer.presentValue(swap, currency, ratesProvider); double df = ratesProvider.discountFactor(currency, future.getDeliveryDate()); return 1d + pvSwap.getAmount() / df; } DiscountingDsfProductPricer(DiscountingSwapProductPricer swapPricer); double price(ResolvedDsf future, RatesProvider ratesProvider); PointSensitivities priceSensitivity(ResolvedDsf future, RatesProvider ratesProvider); static final DiscountingDsfProductPricer DEFAULT; }### Answer:
@Test public void regression() { double price = PRICER.price(FUTURE, PROVIDER); assertThat(price).isCloseTo(1.022245377054993, offset(TOL)); }