Jobs extends ResourceBase { @GET @Path("{accountId}") public List<Transaction> jobs(@PathParam("accountId") int accountId) { return ukelonn.getJobs(accountId); }  @GET @Path("{accountId}") List<Transaction> jobs(@PathParam("accountId") int accountId); @Inject
    public UkelonnService ukelonn; }
@Test public void testGetJobs() { Account account = getJadAccount(); Jobs resource = new Jobs(); UkelonnService ukelonn = mock(UkelonnService.class); when(ukelonn.getJobs(anyInt())).thenReturn(getJadJobs()); resource.ukelonn = ukelonn; List<Transaction> jobs = resource.jobs(account.getAccountId()); assertEquals(10, jobs.size()); }