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

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