@Test
public void getLoanRepaymentScheduleShouldCalculateExtraInterest() throws Exception {

    when(loanBusinessService.computeExtraInterest(eq(loanBO), Matchers.<Date>any())).thenReturn(new Errors());
    when(request.getParameter("accountId")).thenReturn("1");
    when(loanServiceFacade.retrieveOriginalLoanSchedule(Matchers.<Integer>any())).
            thenReturn(new OriginalScheduleInfoDto("100", new Date(), Collections.<RepaymentScheduleInstallment>emptyList()));
    loanAccountAction.getLoanRepaymentSchedule(mapping, form, request, response);
    verify(loanBusinessService, times(1)).computeExtraInterest(Matchers.<LoanBO>any(), Matchers.<Date>any());
}