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

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