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

  com.google.ads.googleads.v5.services.CustomerNegativeCriterionName resourceName2 =
      com.google.ads.googleads.v5.services.CustomerNegativeCriterionName.of(
          "[CUSTOMER]", "[CUSTOMER_NEGATIVE_CRITERION]");
  long id = 3355L;
  CustomerNegativeCriterion expectedResponse =
      CustomerNegativeCriterion.newBuilder()
          .setResourceName(resourceName2.toString())
          .setId(id)
          .build();
  mockCustomerNegativeCriterionService.addResponse(expectedResponse);
  CustomerNegativeCriterionName resourceName =
      CustomerNegativeCriterionName.of("[CUSTOMER]", "[CUSTOMER_NEGATIVE_CRITERION]");
  CustomerNegativeCriterion actualResponse = client.getCustomerNegativeCriterion(resourceName);
  Assert.assertEquals(expectedResponse, actualResponse);
  List<AbstractMessage> actualRequests = mockCustomerNegativeCriterionService.getRequests();
  Assert.assertEquals(1, actualRequests.size());
  GetCustomerNegativeCriterionRequest actualRequest =
      (GetCustomerNegativeCriterionRequest) actualRequests.get(0);
  Assert.assertEquals(
      resourceName, CustomerNegativeCriterionName.parse(actualRequest.getResourceName()));
  Assert.assertTrue(
      channelProvider.isHeaderSent(
          ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
          GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
}