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

  com.google.ads.googleads.v5.services.KeywordPlanAdGroupKeywordName resourceName2 =
      com.google.ads.googleads.v5.services.KeywordPlanAdGroupKeywordName.of(
          "[CUSTOMER]", "[KEYWORD_PLAN_AD_GROUP_KEYWORD]");
  KeywordPlanAdGroupKeyword expectedResponse =
      KeywordPlanAdGroupKeyword.newBuilder().setResourceName(resourceName2.toString()).build();
  mockKeywordPlanAdGroupKeywordService.addResponse(expectedResponse);
  KeywordPlanAdGroupKeywordName resourceName =
      KeywordPlanAdGroupKeywordName.of("[CUSTOMER]", "[KEYWORD_PLAN_AD_GROUP_KEYWORD]");
  KeywordPlanAdGroupKeyword actualResponse = client.getKeywordPlanAdGroupKeyword(resourceName);
  Assert.assertEquals(expectedResponse, actualResponse);
  List<AbstractMessage> actualRequests = mockKeywordPlanAdGroupKeywordService.getRequests();
  Assert.assertEquals(1, actualRequests.size());
  GetKeywordPlanAdGroupKeywordRequest actualRequest =
      (GetKeywordPlanAdGroupKeywordRequest) actualRequests.get(0);
  Assert.assertEquals(
      resourceName, KeywordPlanAdGroupKeywordName.parse(actualRequest.getResourceName()));
  Assert.assertTrue(
      channelProvider.isHeaderSent(
          ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
          GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
}