@Test
public void testGetAccounts() throws Exception {

    // Create the object to be tested
    Accounts resource = new Accounts();
    // Inject fake OSGi service UkelonnService
    UkelonnService ukelonn = mock(UkelonnService.class);
    when(ukelonn.getAccounts()).thenReturn(getDummyAccounts());
    resource.ukelonn = ukelonn;
    // Run the method under test
    List<Account> result = resource.accounts();
    // Check the result
    assertEquals(2, result.size());
}