@Test
public void testShouldAddErrorIfTransactionDateForAPaymentIsInFuture() throws Exception {

    expect(paymentMock.getTransactionDate()).andReturn(DateUtils.getDateFromToday(1));
    replay(paymentMock);
    ActionErrors errors = new ActionErrors();
    form.validateTransactionDate(errors, paymentMock, DateUtils.getDateFromToday(-3));
    verify(paymentMock);
    assertErrorKey(errors, LoanExceptionConstants.INVALIDTRANSACTIONDATEFORPAYMENT);
}