JobtypeList { @GET public List<TransactionType> getJobtypes() { return ukelonn.getJobTypes(); }  @GET List<TransactionType> getJobtypes();  }
@Test public void testGetJobtypes() throws Exception { JobtypeList resource = new JobtypeList(); UkelonnService ukelonn = mock(UkelonnService.class); when(ukelonn.getJobTypes()).thenReturn(getJobtypes()); resource.ukelonn = ukelonn; List<TransactionType> jobtypes = resource.getJobtypes(); assertEquals(4, jobtypes.size()); }