@Test(expected=InternalServerErrorException.class)
public void testRegisterJobInternalServerError() throws Exception {

    // Create the request
    Account account = new Account();
    List<TransactionType> jobTypes = getJobtypes();
    PerformedTransaction job = new PerformedTransaction(account, jobTypes.get(0).getId(), jobTypes.get(0).getTransactionAmount(), new Date());
    // Create the object to be tested
    JobResource resource = new JobResource();
    // Create mock OSGi services to inject and inject it
    MockLogService logservice = new MockLogService();
    resource.logservice = logservice;
    // Inject fake OSGi service UkelonnService
    UkelonnService ukelonn = mock(UkelonnService.class);
    resource.ukelonn = ukelonn;
    // Clear the Subject to ensure that Shiro will fail
    // no matter what order test methods are run in
    ThreadContext.remove();
    // Run the method under test
    resource.doRegisterJob(job);
}