@Test
public void testGetAccount() {

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