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

  com.google.ads.googleads.v5.services.CarrierConstantName resourceName2 =
      com.google.ads.googleads.v5.services.CarrierConstantName.of("[CARRIER_CONSTANT]");
  long id = 3355L;
  com.google.ads.googleads.v5.services.CarrierConstantName name =
      com.google.ads.googleads.v5.services.CarrierConstantName.of("[CARRIER_CONSTANT]");
  String countryCode = "countryCode1481071862";
  CarrierConstant expectedResponse =
      CarrierConstant.newBuilder()
          .setResourceName(resourceName2.toString())
          .setId(id)
          .setName(name.toString())
          .setCountryCode(countryCode)
          .build();
  mockCarrierConstantService.addResponse(expectedResponse);
  CarrierConstantName resourceName = CarrierConstantName.of("[CARRIER_CONSTANT]");
  CarrierConstant actualResponse = client.getCarrierConstant(resourceName);
  Assert.assertEquals(expectedResponse, actualResponse);
  List<AbstractMessage> actualRequests = mockCarrierConstantService.getRequests();
  Assert.assertEquals(1, actualRequests.size());
  GetCarrierConstantRequest actualRequest = (GetCarrierConstantRequest) actualRequests.get(0);
  Assert.assertEquals(resourceName, CarrierConstantName.parse(actualRequest.getResourceName()));
  Assert.assertTrue(
      channelProvider.isHeaderSent(
          ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
          GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
}