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

  com.google.ads.googleads.v5.services.CampaignName resourceName2 =
      com.google.ads.googleads.v5.services.CampaignName.of("[CUSTOMER]", "[CAMPAIGN]");
  long id = 3355L;
  com.google.ads.googleads.v5.services.CampaignName name =
      com.google.ads.googleads.v5.services.CampaignName.of("[CUSTOMER]", "[CAMPAIGN]");
  String trackingUrlTemplate = "trackingUrlTemplate-1611329070";
  com.google.ads.googleads.v5.services.CampaignName baseCampaign =
      com.google.ads.googleads.v5.services.CampaignName.of("[CUSTOMER]", "[CAMPAIGN]");
  CampaignBudgetName campaignBudget = CampaignBudgetName.of("[CUSTOMER]", "[CAMPAIGN_BUDGET]");
  String startDate = "startDate-1573629589";
  String endDate = "endDate1725067410";
  String finalUrlSuffix = "finalUrlSuffix-1825164662";
  double optimizationScore = -1.69982841E8;
  BiddingStrategyName biddingStrategy =
      BiddingStrategyName.of("[CUSTOMER]", "[BIDDING_STRATEGY]");
  Campaign expectedResponse =
      Campaign.newBuilder()
          .setResourceName(resourceName2.toString())
          .setId(id)
          .setName(name.toString())
          .setTrackingUrlTemplate(trackingUrlTemplate)
          .setBaseCampaign(baseCampaign.toString())
          .setCampaignBudget(campaignBudget.toString())
          .setStartDate(startDate)
          .setEndDate(endDate)
          .setFinalUrlSuffix(finalUrlSuffix)
          .setOptimizationScore(optimizationScore)
          .setBiddingStrategy(biddingStrategy.toString())
          .build();
  mockCampaignService.addResponse(expectedResponse);
  CampaignName resourceName = CampaignName.of("[CUSTOMER]", "[CAMPAIGN]");
  Campaign actualResponse = client.getCampaign(resourceName);
  Assert.assertEquals(expectedResponse, actualResponse);
  List<AbstractMessage> actualRequests = mockCampaignService.getRequests();
  Assert.assertEquals(1, actualRequests.size());
  GetCampaignRequest actualRequest = (GetCampaignRequest) actualRequests.get(0);
  Assert.assertEquals(resourceName, CampaignName.parse(actualRequest.getResourceName()));
  Assert.assertTrue(
      channelProvider.isHeaderSent(
          ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
          GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
}