@Test
public void testMoveTask() throws Exception {

    TaskMoveRequest request = TaskMoveRequest.newBuilder()
            .setSourceJobId(JOB_ID_1)
            .setTargetJobId(JOB_2.getId())
            .setTaskId(TASK_ID_1)
            .build();
    when(jobServiceGatewayMock.moveTask(request, JUNIT_REST_CALL_METADATA)).thenReturn(Completable.complete());
    SpringMockMvcUtil.doPost(mockMvc, "/api/v3/tasks/move", request);
    verify(jobServiceGatewayMock, times(1)).moveTask(request, JUNIT_REST_CALL_METADATA);
}