@Test
public void deleteJobTest() throws Exception {

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