* Tests today payment amount when the present is on the deposit end date.
*/
public void todayPaymentOnEnd() {
final ZonedDateTime referenceDate = END_DATE;
final DepositCounterpart deposit = DEPOSIT_CPTY_DEFINITION.toDerivative(referenceDate);
final MultipleCurrencyAmount cash = deposit.accept(TPC);
assertEquals("DepositDefinition: today payment", NOTIONAL + deposit.getInterestAmount(), cash.getAmount(deposit.getCurrency()), TOLERANCE_PV);
assertEquals("DepositDefinition: today payment", 1, cash.getCurrencyAmounts().length);
}
}