for (final Map.Entry<LocalDate, MultipleCurrencyAmount> entry : payments.entrySet()) {
assertEquals(paymentDate, entry.getKey());
assertEquals(1, entry.getValue().size());
assertEquals(FIXED_INCOME_CURRENCY, entry.getValue().getCurrencyAmounts()[0].getCurrency());
assertEquals(SWAP_NOTIONAL * FIXING_RATE / 2, entry.getValue().getCurrencyAmounts()[0].getAmount(), 1e-15);
paymentDate = paymentDate.plusMonths(6);
}
payments = new TreeMap<>(RECEIVER_SWAP_WITH_SPREAD.accept(VISITOR, IBOR_FIXING_SERIES));
assertEquals(24, payments.size());
paymentDate = SWAP_START.toLocalDate().plusMonths(6);
for (final Map.Entry<LocalDate, MultipleCurrencyAmount> entry : payments.entrySet()) {