@Test
public void testGetJobtypes() throws Exception {

    // Create the resource that is to be tested
    JobtypeList resource = new JobtypeList();
    // Inject fake OSGi service UkelonnService
    UkelonnService ukelonn = mock(UkelonnService.class);
    when(ukelonn.getJobTypes()).thenReturn(getJobtypes());
    resource.ukelonn = ukelonn;
    // Run the method that is to be tested
    List<TransactionType> jobtypes = resource.getJobtypes();
    // Check the output
    assertEquals(4, jobtypes.size());
}