@Test
public void testUpdateJobAttributes() throws Exception {

    JobAttributesUpdate restRequest = JobAttributesUpdate.newBuilder()
            .setJobId(JOB_ID_1)
            .putAttributes("keyA", "valueA")
            .build();
    when(jobServiceGatewayMock.updateJobAttributes(restRequest, JUNIT_REST_CALL_METADATA)).thenReturn(Mono.empty());
    SpringMockMvcUtil.doPut(mockMvc, String.format("/api/v3/jobs/%s/attributes", JOB_ID_1), restRequest);
    verify(jobServiceGatewayMock, times(1)).updateJobAttributes(restRequest, JUNIT_REST_CALL_METADATA);
}