Response testResponse = schedulerResource.updateBlockout( jobId, mockJobScheduleRequest );
assertEquals( mockUnauthorizedResponse, testResponse );
// Test 2
SchedulerException mockSchedulerException = mock( SchedulerException.class );
doThrow( mockSchedulerException ).when( schedulerResource.schedulerService ).updateBlockout( jobId,
mockJobScheduleRequest );
testResponse = schedulerResource.updateBlockout( jobId, mockJobScheduleRequest );
assertEquals( mockUnauthorizedResponse, testResponse );