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

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