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

  UploadCallConversionsResponse expectedResponse =
      UploadCallConversionsResponse.newBuilder().build();
  mockConversionUploadService.addResponse(expectedResponse);
  String customerId = "customerId-1772061412";
  List<CallConversion> conversions = new ArrayList<>();
  boolean partialFailure = true;
  UploadCallConversionsResponse actualResponse =
      client.uploadCallConversions(customerId, conversions, partialFailure);
  Assert.assertEquals(expectedResponse, actualResponse);
  List<AbstractMessage> actualRequests = mockConversionUploadService.getRequests();
  Assert.assertEquals(1, actualRequests.size());
  UploadCallConversionsRequest actualRequest =
      (UploadCallConversionsRequest) actualRequests.get(0);
  Assert.assertEquals(customerId, actualRequest.getCustomerId());
  Assert.assertEquals(conversions, actualRequest.getConversionsList());
  Assert.assertEquals(partialFailure, actualRequest.getPartialFailure());
  Assert.assertTrue(
      channelProvider.isHeaderSent(
          ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
          GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
}