public void test_adjustPaymentDate() { NotionalExchange test = NotionalExchange.of(GBP_1000, DATE_2014_06_30); NotionalExchange expected = NotionalExchange.of(GBP_1000, DATE_2014_06_30.plusDays(2)); assertEquals(test.adjustPaymentDate(TemporalAdjusters.ofDateAdjuster(d -> d.plusDays(0))), test); assertEquals(test.adjustPaymentDate(TemporalAdjusters.ofDateAdjuster(d -> d.plusDays(2))), expected); }