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

  com.google.ads.googleads.v5.services.ConversionActionName resourceName2 =
      com.google.ads.googleads.v5.services.ConversionActionName.of(
          "[CUSTOMER]", "[CONVERSION_ACTION]");
  long id = 3355L;
  com.google.ads.googleads.v5.services.ConversionActionName name =
      com.google.ads.googleads.v5.services.ConversionActionName.of(
          "[CUSTOMER]", "[CONVERSION_ACTION]");
  String ownerCustomer = "ownerCustomer-857925654";
  boolean includeInConversionsMetric = false;
  long clickThroughLookbackWindowDays = 1040290530L;
  long viewThroughLookbackWindowDays = 990677281L;
  long phoneCallDurationSeconds = 917713540L;
  String appId = "appId-1411074055";
  ConversionAction expectedResponse =
      ConversionAction.newBuilder()
          .setResourceName(resourceName2.toString())
          .setId(id)
          .setName(name.toString())
          .setOwnerCustomer(ownerCustomer)
          .setIncludeInConversionsMetric(includeInConversionsMetric)
          .setClickThroughLookbackWindowDays(clickThroughLookbackWindowDays)
          .setViewThroughLookbackWindowDays(viewThroughLookbackWindowDays)
          .setPhoneCallDurationSeconds(phoneCallDurationSeconds)
          .setAppId(appId)
          .build();
  mockConversionActionService.addResponse(expectedResponse);
  ConversionActionName resourceName =
      ConversionActionName.of("[CUSTOMER]", "[CONVERSION_ACTION]");
  ConversionAction actualResponse = client.getConversionAction(resourceName);
  Assert.assertEquals(expectedResponse, actualResponse);
  List<AbstractMessage> actualRequests = mockConversionActionService.getRequests();
  Assert.assertEquals(1, actualRequests.size());
  GetConversionActionRequest actualRequest = (GetConversionActionRequest) actualRequests.get(0);
  Assert.assertEquals(resourceName, ConversionActionName.parse(actualRequest.getResourceName()));
  Assert.assertTrue(
      channelProvider.isHeaderSent(
          ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
          GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
}