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

  com.google.ads.googleads.v5.services.GeoTargetConstantName resourceName2 =
      com.google.ads.googleads.v5.services.GeoTargetConstantName.of("[GEO_TARGET_CONSTANT]");
  long id = 3355L;
  com.google.ads.googleads.v5.services.GeoTargetConstantName name =
      com.google.ads.googleads.v5.services.GeoTargetConstantName.of("[GEO_TARGET_CONSTANT]");
  String countryCode = "countryCode1481071862";
  String targetType = "targetType-2084558552";
  String canonicalName = "canonicalName1385400054";
  com.google.ads.googleads.v5.services.GeoTargetConstantName parentGeoTarget =
      com.google.ads.googleads.v5.services.GeoTargetConstantName.of("[GEO_TARGET_CONSTANT]");
  GeoTargetConstant expectedResponse =
      GeoTargetConstant.newBuilder()
          .setResourceName(resourceName2.toString())
          .setId(id)
          .setName(name.toString())
          .setCountryCode(countryCode)
          .setTargetType(targetType)
          .setCanonicalName(canonicalName)
          .setParentGeoTarget(parentGeoTarget.toString())
          .build();
  mockGeoTargetConstantService.addResponse(expectedResponse);
  GeoTargetConstantName resourceName = GeoTargetConstantName.of("[GEO_TARGET_CONSTANT]");
  GeoTargetConstant actualResponse = client.getGeoTargetConstant(resourceName);
  Assert.assertEquals(expectedResponse, actualResponse);
  List<AbstractMessage> actualRequests = mockGeoTargetConstantService.getRequests();
  Assert.assertEquals(1, actualRequests.size());
  GetGeoTargetConstantRequest actualRequest = (GetGeoTargetConstantRequest) actualRequests.get(0);
  Assert.assertEquals(resourceName, GeoTargetConstantName.parse(actualRequest.getResourceName()));
  Assert.assertTrue(
      channelProvider.isHeaderSent(
          ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
          GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
}