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

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