@Test
public void testModifyJobtype() {

    // Create the resource that is to be tested
    AdminJobtype resource = new AdminJobtype();
    // Inject fake OSGi service UkelonnService
    UkelonnService ukelonn = mock(UkelonnService.class);
    resource.ukelonn = ukelonn;
    // Find a jobtype to modify
    List<TransactionType> jobtypes = getJobtypes();
    TransactionType jobtype = jobtypes.get(0);
    Double originalAmount = jobtype.getTransactionAmount();
    // Modify the amount of the jobtype
    jobtype.setTransactionAmount(originalAmount + 1);
    when(ukelonn.modifyJobtype(any())).thenReturn(Arrays.asList(jobtype));
    // Run the method that is to be tested
    List<TransactionType> updatedJobtypes = resource.modify(jobtype);
    // Verify that the updated amount is larger than the original amount
    TransactionType updatedJobtype = updatedJobtypes.get(0);
    assertThat(updatedJobtype.getTransactionAmount()).isGreaterThan(originalAmount);
}