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

  UploadUserDataResponse expectedResponse = UploadUserDataResponse.newBuilder().build();
  mockUserDataService.addResponse(expectedResponse);
  String customerId = "customerId-1772061412";
  List<UserDataOperation> operations = new ArrayList<>();
  UploadUserDataRequest request =
      UploadUserDataRequest.newBuilder()
          .setCustomerId(customerId)
          .addAllOperations(operations)
          .build();
  UploadUserDataResponse actualResponse = client.uploadUserData(request);
  Assert.assertEquals(expectedResponse, actualResponse);
  List<AbstractMessage> actualRequests = mockUserDataService.getRequests();
  Assert.assertEquals(1, actualRequests.size());
  UploadUserDataRequest actualRequest = (UploadUserDataRequest) actualRequests.get(0);
  Assert.assertEquals(customerId, actualRequest.getCustomerId());
  Assert.assertEquals(operations, actualRequest.getOperationsList());
  Assert.assertTrue(
      channelProvider.isHeaderSent(
          ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
          GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
}