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

  com.google.ads.googleads.v5.services.CurrencyConstantName resourceName2 =
      com.google.ads.googleads.v5.services.CurrencyConstantName.of("[CURRENCY_CONSTANT]");
  String code = "code3059181";
  com.google.ads.googleads.v5.services.CurrencyConstantName name =
      com.google.ads.googleads.v5.services.CurrencyConstantName.of("[CURRENCY_CONSTANT]");
  String symbol = "symbol-887523944";
  long billableUnitMicros = 1611838444L;
  CurrencyConstant expectedResponse =
      CurrencyConstant.newBuilder()
          .setResourceName(resourceName2.toString())
          .setCode(code)
          .setName(name.toString())
          .setSymbol(symbol)
          .setBillableUnitMicros(billableUnitMicros)
          .build();
  mockCurrencyConstantService.addResponse(expectedResponse);
  CurrencyConstantName resourceName = CurrencyConstantName.of("[CURRENCY_CONSTANT]");
  CurrencyConstant actualResponse = client.getCurrencyConstant(resourceName);
  Assert.assertEquals(expectedResponse, actualResponse);
  List<AbstractMessage> actualRequests = mockCurrencyConstantService.getRequests();
  Assert.assertEquals(1, actualRequests.size());
  GetCurrencyConstantRequest actualRequest = (GetCurrencyConstantRequest) actualRequests.get(0);
  Assert.assertEquals(resourceName, CurrencyConstantName.parse(actualRequest.getResourceName()));
  Assert.assertTrue(
      channelProvider.isHeaderSent(
          ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
          GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
}