@Test
public void loadShouldSetLastPaymentDateOnForm() throws Exception {

    when(accountServiceFacade.getAccountPaymentInformation(Matchers.<Integer>any(), Matchers.<String>any(),
                    Matchers.<Short> any(), Matchers.<UserReferenceDto> any(), Matchers.<Date> any())).thenReturn(
            new AccountPaymentDto(null, 0, null, null, null, new Date(1234), null, null));
    when(form.getAccountId()).thenReturn("1");
    accountApplyPaymentAction = new AccountApplyPaymentAction(accountServiceFacade, legacyAcceptedPaymentTypeDao) {
        @Override
        protected UserContext getUserContext(HttpServletRequest request) {
            return userContext;
        }
        @Override
        void setValuesInSession(HttpServletRequest request, AccountApplyPaymentActionForm actionForm, AccountPaymentDto accountPaymentDto) throws PageExpiredException {
        }
    };
    accountApplyPaymentAction.load(actionMapping, form, request, response);
    verify(form).setLastPaymentDate(new Date(1234));
}