@Test
public void testUpdateJob() throws Exception
{

    // Create a job update request.
    JobUpdateRequest jobUpdateRequest = new JobUpdateRequest(JobActionEnum.RESUME);
    // Create a job.
    Job job = new Job();
    job.setId(JOB_ID);
    // Mock the external calls.
    when(jobService.updateJob(JOB_ID, jobUpdateRequest)).thenReturn(job);
    // Call the method under test.
    Job result = jobRestController.updateJob(JOB_ID, jobUpdateRequest);
    // Verify the external calls.
    verify(jobService).updateJob(JOB_ID, jobUpdateRequest);
    verifyNoMoreInteractionsHelper();
    // Validate the results.
    assertEquals(job, result);
}