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

  com.google.ads.googleads.v5.services.AdGroupBidModifierName resourceName2 =
      com.google.ads.googleads.v5.services.AdGroupBidModifierName.of(
          "[CUSTOMER]", "[AD_GROUP_BID_MODIFIER]");
  AdGroupName adGroup = AdGroupName.of("[CUSTOMER]", "[AD_GROUP]");
  long criterionId = 326773895L;
  double bidModifier = 1.36236335E8;
  AdGroupName baseAdGroup = AdGroupName.of("[CUSTOMER]", "[AD_GROUP]");
  AdGroupBidModifier expectedResponse =
      AdGroupBidModifier.newBuilder()
          .setResourceName(resourceName2.toString())
          .setAdGroup(adGroup.toString())
          .setCriterionId(criterionId)
          .setBidModifier(bidModifier)
          .setBaseAdGroup(baseAdGroup.toString())
          .build();
  mockAdGroupBidModifierService.addResponse(expectedResponse);
  AdGroupBidModifierName resourceName =
      AdGroupBidModifierName.of("[CUSTOMER]", "[AD_GROUP_BID_MODIFIER]");
  AdGroupBidModifier actualResponse = client.getAdGroupBidModifier(resourceName);
  Assert.assertEquals(expectedResponse, actualResponse);
  List<AbstractMessage> actualRequests = mockAdGroupBidModifierService.getRequests();
  Assert.assertEquals(1, actualRequests.size());
  GetAdGroupBidModifierRequest actualRequest =
      (GetAdGroupBidModifierRequest) actualRequests.get(0);
  Assert.assertEquals(
      resourceName, AdGroupBidModifierName.parse(actualRequest.getResourceName()));
  Assert.assertTrue(
      channelProvider.isHeaderSent(
          ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
          GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
}