@Test
public void testGetPayments() {

    UkelonnServiceProvider ukelonn = getUkelonnServiceSingleton();
    String username = "jad";
    UserManagementService useradmin = mock(UserManagementService.class);
    no.priv.bang.osgiservice.users.User user = new no.priv.bang.osgiservice.users.User(1, username, "jad@gmail.com", "Jane", "Doe");
    when(useradmin.getUser(anyString())).thenReturn(user);
    ukelonn.setUserAdmin(useradmin);
    Account account = ukelonn.getAccount(username);
    List<Transaction> payments = ukelonn.getPayments(account.getAccountId());
    assertEquals(10, payments.size());
}