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

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