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

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