@Test
public void testGetJob() throws Exception
{

    // Create a job.
    Job job = new Job();
    job.setId(JOB_ID);
    // Mock the external calls.
    when(jobService.getJob(JOB_ID, VERBOSE)).thenReturn(job);
    // Call the method under test.
    Job result = jobRestController.getJob(JOB_ID, VERBOSE);
    // Verify the external calls.
    verify(jobService).getJob(JOB_ID, VERBOSE);
    verifyNoMoreInteractionsHelper();
    // Validate the results.
    assertEquals(job, result);
}