@Test
public void testJobGetIdDoesntExist() {
JobQuery invalidQueryNonExistingJob;
invalidQueryNonExistingJob = mock(JobQuery.class);
when(mockManagementService.createJobQuery().jobId(MockProvider.NON_EXISTING_JOB_ID)).thenReturn(invalidQueryNonExistingJob);
when(invalidQueryNonExistingJob.singleResult()).thenReturn(null);
String jobId = MockProvider.NON_EXISTING_JOB_ID;
given().pathParam("id", jobId).then().expect().statusCode(Status.NOT_FOUND.getStatusCode()).contentType(ContentType.JSON)
.body("type", equalTo(InvalidRequestException.class.getSimpleName()))