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

  com.google.ads.googleads.v5.services.AdGroupCriterionLabelName resourceName2 =
      com.google.ads.googleads.v5.services.AdGroupCriterionLabelName.of(
          "[CUSTOMER]", "[AD_GROUP_CRITERION_LABEL]");
  AdGroupCriterionLabel expectedResponse =
      AdGroupCriterionLabel.newBuilder().setResourceName(resourceName2.toString()).build();
  mockAdGroupCriterionLabelService.addResponse(expectedResponse);
  AdGroupCriterionLabelName resourceName =
      AdGroupCriterionLabelName.of("[CUSTOMER]", "[AD_GROUP_CRITERION_LABEL]");
  AdGroupCriterionLabel actualResponse = client.getAdGroupCriterionLabel(resourceName);
  Assert.assertEquals(expectedResponse, actualResponse);
  List<AbstractMessage> actualRequests = mockAdGroupCriterionLabelService.getRequests();
  Assert.assertEquals(1, actualRequests.size());
  GetAdGroupCriterionLabelRequest actualRequest =
      (GetAdGroupCriterionLabelRequest) actualRequests.get(0);
  Assert.assertEquals(
      resourceName, AdGroupCriterionLabelName.parse(actualRequest.getResourceName()));
  Assert.assertTrue(
      channelProvider.isHeaderSent(
          ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
          GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
}