@Test
public void getJobByNameNoSuchJobExecptionTest() throws NoSuchJobException {

    when(this.jobRegistry.getJob(JOB_NAME)).thenThrow(new NoSuchJobException("TEST"));
    final Job job = this.jobService.getJobByName(JOB_NAME);
    assertThat(job).isNull();
}