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

  com.google.ads.googleads.v5.services.CampaignBidModifierName resourceName2 =
      com.google.ads.googleads.v5.services.CampaignBidModifierName.of(
          "[CUSTOMER]", "[CAMPAIGN_BID_MODIFIER]");
  CampaignName campaign = CampaignName.of("[CUSTOMER]", "[CAMPAIGN]");
  long criterionId = 326773895L;
  double bidModifier = 1.36236335E8;
  CampaignBidModifier expectedResponse =
      CampaignBidModifier.newBuilder()
          .setResourceName(resourceName2.toString())
          .setCampaign(campaign.toString())
          .setCriterionId(criterionId)
          .setBidModifier(bidModifier)
          .build();
  mockCampaignBidModifierService.addResponse(expectedResponse);
  CampaignBidModifierName resourceName =
      CampaignBidModifierName.of("[CUSTOMER]", "[CAMPAIGN_BID_MODIFIER]");
  CampaignBidModifier actualResponse = client.getCampaignBidModifier(resourceName);
  Assert.assertEquals(expectedResponse, actualResponse);
  List<AbstractMessage> actualRequests = mockCampaignBidModifierService.getRequests();
  Assert.assertEquals(1, actualRequests.size());
  GetCampaignBidModifierRequest actualRequest =
      (GetCampaignBidModifierRequest) actualRequests.get(0);
  Assert.assertEquals(
      resourceName, CampaignBidModifierName.parse(actualRequest.getResourceName()));
  Assert.assertTrue(
      channelProvider.isHeaderSent(
          ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
          GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
}