@Test
public void testDeleteTaskAttributes() throws Exception {

    TaskAttributesDeleteRequest forwardedRequest = TaskAttributesDeleteRequest.newBuilder()
            .setTaskId(TASK_ID_1)
            .addKeys("keyA")
            .build();
    when(jobServiceGatewayMock.deleteTaskAttributes(forwardedRequest, JUNIT_REST_CALL_METADATA)).thenReturn(Completable.complete());
    SpringMockMvcUtil.doDelete(mockMvc, String.format("/api/v3/tasks/%s/attributes", TASK_ID_1), "keys", "keyA");
    verify(jobServiceGatewayMock, times(1)).deleteTaskAttributes(forwardedRequest, JUNIT_REST_CALL_METADATA);
}