@Test
public void testGetPayments() {

    Account account = getJadAccount();
    Payments resource = new Payments();
    UkelonnService ukelonn = mock(UkelonnService.class);
    when(ukelonn.getPayments(anyInt())).thenReturn(getJadPayments());
    resource.ukelonn = ukelonn;
    List<Transaction> jobs = resource.payments(account.getAccountId());
    assertEquals(10, jobs.size());
}