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

  com.google.ads.googleads.v5.services.ProductBiddingCategoryConstantName resourceName2 =
      com.google.ads.googleads.v5.services.ProductBiddingCategoryConstantName.of(
          "[PRODUCT_BIDDING_CATEGORY_CONSTANT]");
  ProductBiddingCategoryConstant expectedResponse =
      ProductBiddingCategoryConstant.newBuilder()
          .setResourceName(resourceName2.toString())
          .build();
  mockProductBiddingCategoryConstantService.addResponse(expectedResponse);
  ProductBiddingCategoryConstantName resourceName =
      ProductBiddingCategoryConstantName.of("[PRODUCT_BIDDING_CATEGORY_CONSTANT]");
  ProductBiddingCategoryConstant actualResponse =
      client.getProductBiddingCategoryConstant(resourceName);
  Assert.assertEquals(expectedResponse, actualResponse);
  List<AbstractMessage> actualRequests = mockProductBiddingCategoryConstantService.getRequests();
  Assert.assertEquals(1, actualRequests.size());
  GetProductBiddingCategoryConstantRequest actualRequest =
      (GetProductBiddingCategoryConstantRequest) actualRequests.get(0);
  Assert.assertEquals(
      resourceName, ProductBiddingCategoryConstantName.parse(actualRequest.getResourceName()));
  Assert.assertTrue(
      channelProvider.isHeaderSent(
          ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
          GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
}