@Test
public void getJobByNameTest() throws NoSuchJobException {

    final Job expectedJob = DomainTestHelper.createJob(JOB_NAME);
    when(this.jobRegistry.getJob(JOB_NAME)).thenReturn(expectedJob);
    final Job job = this.jobService.getJobByName(JOB_NAME);
    assertThat(job).isEqualTo(expectedJob);
}