@Test
public void testSetJobProcesses() throws Exception {

    ServiceJobSpec.ServiceJobProcesses restRequest = ServiceJobSpec.ServiceJobProcesses.newBuilder()
            .setDisableDecreaseDesired(true)
            .setDisableIncreaseDesired(true)
            .build();
    JobProcessesUpdate forwardedRequest = JobProcessesUpdate.newBuilder()
            .setJobId(JOB_ID_1)
            .setServiceJobProcesses(restRequest)
            .build();
    when(jobServiceGatewayMock.updateJobProcesses(forwardedRequest, JUNIT_REST_CALL_METADATA)).thenReturn(Completable.complete());
    SpringMockMvcUtil.doPut(mockMvc, String.format("/api/v3/jobs/%s/jobprocesses", JOB_ID_1), restRequest);
    verify(jobServiceGatewayMock, times(1)).updateJobProcesses(forwardedRequest, JUNIT_REST_CALL_METADATA);
}