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

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