@Test
public void triggerJobTest() throws Exception {

    mockJobIdentifier("job-name", "group");
    toTest.triggerJob(jobIdentifier);
    verify(scheduler).triggerJob(eq(new JobKey("job-name", "group")));
    doThrow(new SchedulerException()).when(scheduler).triggerJob((JobKey) any());
    try {
        toTest.triggerJob(jobIdentifier);
    } catch (final JobSchedulerException e) {
        return;
    }
    fail();
}