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

  com.google.ads.googleads.v5.services.LanguageConstantName resourceName2 =
      com.google.ads.googleads.v5.services.LanguageConstantName.of("[LANGUAGE_CONSTANT]");
  long id = 3355L;
  String code = "code3059181";
  com.google.ads.googleads.v5.services.LanguageConstantName name =
      com.google.ads.googleads.v5.services.LanguageConstantName.of("[LANGUAGE_CONSTANT]");
  boolean targetable = false;
  LanguageConstant expectedResponse =
      LanguageConstant.newBuilder()
          .setResourceName(resourceName2.toString())
          .setId(id)
          .setCode(code)
          .setName(name.toString())
          .setTargetable(targetable)
          .build();
  mockLanguageConstantService.addResponse(expectedResponse);
  LanguageConstantName resourceName = LanguageConstantName.of("[LANGUAGE_CONSTANT]");
  LanguageConstant actualResponse = client.getLanguageConstant(resourceName);
  Assert.assertEquals(expectedResponse, actualResponse);
  List<AbstractMessage> actualRequests = mockLanguageConstantService.getRequests();
  Assert.assertEquals(1, actualRequests.size());
  GetLanguageConstantRequest actualRequest = (GetLanguageConstantRequest) actualRequests.get(0);
  Assert.assertEquals(resourceName, LanguageConstantName.parse(actualRequest.getResourceName()));
  Assert.assertTrue(
      channelProvider.isHeaderSent(
          ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
          GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
}