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

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