@Test
@SuppressWarnings("all")
public void addOfflineUserDataJobOperationsTest() {

  AddOfflineUserDataJobOperationsResponse expectedResponse =
      AddOfflineUserDataJobOperationsResponse.newBuilder().build();
  mockOfflineUserDataJobService.addResponse(expectedResponse);
  OfflineUserDataJobName resourceName =
      OfflineUserDataJobName.of("[CUSTOMER]", "[OFFLINE_USER_DATA_JOB]");
  List<OfflineUserDataJobOperation> operations = new ArrayList<>();
  AddOfflineUserDataJobOperationsResponse actualResponse =
      client.addOfflineUserDataJobOperations(resourceName, operations);
  Assert.assertEquals(expectedResponse, actualResponse);
  List<AbstractMessage> actualRequests = mockOfflineUserDataJobService.getRequests();
  Assert.assertEquals(1, actualRequests.size());
  AddOfflineUserDataJobOperationsRequest actualRequest =
      (AddOfflineUserDataJobOperationsRequest) actualRequests.get(0);
  Assert.assertEquals(
      resourceName, OfflineUserDataJobName.parse(actualRequest.getResourceName()));
  Assert.assertEquals(operations, actualRequest.getOperationsList());
  Assert.assertTrue(
      channelProvider.isHeaderSent(
          ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
          GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
}