@Test
public void testCreateJob() throws Exception {

    when(jobServiceGatewayMock.createJob(JOB_DESCRIPTOR_1, JUNIT_REST_CALL_METADATA)).thenReturn(Observable.just(JOB_ID_1));
    JobId entity = SpringMockMvcUtil.doPost(mockMvc, "/api/v3/jobs", JOB_DESCRIPTOR_1, JobId.class);
    assertThat(entity.getId()).isEqualTo(JOB_ID_1);
    verify(jobServiceGatewayMock, times(1)).createJob(JOB_DESCRIPTOR_1, JUNIT_REST_CALL_METADATA);
}