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

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