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

  com.google.ads.googleads.v5.services.CampaignCriterionName resourceName2 =
      com.google.ads.googleads.v5.services.CampaignCriterionName.of(
          "[CUSTOMER]", "[CAMPAIGN_CRITERION]");
  CampaignName campaign = CampaignName.of("[CUSTOMER]", "[CAMPAIGN]");
  long criterionId = 326773895L;
  float bidModifier = 1.36236335E8F;
  boolean negative = false;
  CampaignCriterion expectedResponse =
      CampaignCriterion.newBuilder()
          .setResourceName(resourceName2.toString())
          .setCampaign(campaign.toString())
          .setCriterionId(criterionId)
          .setBidModifier(bidModifier)
          .setNegative(negative)
          .build();
  mockCampaignCriterionService.addResponse(expectedResponse);
  CampaignCriterionName resourceName =
      CampaignCriterionName.of("[CUSTOMER]", "[CAMPAIGN_CRITERION]");
  CampaignCriterion actualResponse = client.getCampaignCriterion(resourceName);
  Assert.assertEquals(expectedResponse, actualResponse);
  List<AbstractMessage> actualRequests = mockCampaignCriterionService.getRequests();
  Assert.assertEquals(1, actualRequests.size());
  GetCampaignCriterionRequest actualRequest = (GetCampaignCriterionRequest) actualRequests.get(0);
  Assert.assertEquals(resourceName, CampaignCriterionName.parse(actualRequest.getResourceName()));
  Assert.assertTrue(
      channelProvider.isHeaderSent(
          ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
          GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
}