@SuppressWarnings("unchecked")
@Test
public void verifyDeletingNoJobsOfUserHasNoEffect() {

    AdminJobs resource = new AdminJobs();
    // Inject fake OSGi service UkelonnService
    UkelonnService ukelonn = mock(UkelonnService.class);
    when(ukelonn.deleteJobsFromAccount(anyInt(), anyList())).thenReturn(getJodJobs());
    resource.ukelonn = ukelonn;
    Account account = getJodAccount();
    // Delete with an empty argument
    List<Integer> idsOfJobsToDelete = Collections.emptyList();
    AccountWithJobIds accountWithJobIds = new AccountWithJobIds(account, idsOfJobsToDelete);
    List<Transaction> jobsAfterDelete = resource.delete(accountWithJobIds);
    // Verify that nothing has been deleted
    assertEquals(2, jobsAfterDelete.size());
}