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

  com.google.ads.googleads.v5.services.DynamicSearchAdsSearchTermViewName resourceName2 =
      com.google.ads.googleads.v5.services.DynamicSearchAdsSearchTermViewName.of(
          "[CUSTOMER]", "[DYNAMIC_SEARCH_ADS_SEARCH_TERM_VIEW]");
  String searchTerm = "searchTerm-539238237";
  String headline = "headline-1115058732";
  String landingPage = "landingPage-1755408457";
  String pageUrl = "pageUrl859797439";
  boolean hasNegativeKeyword = true;
  boolean hasMatchingKeyword = true;
  boolean hasNegativeUrl = true;
  DynamicSearchAdsSearchTermView expectedResponse =
      DynamicSearchAdsSearchTermView.newBuilder()
          .setResourceName(resourceName2.toString())
          .setSearchTerm(searchTerm)
          .setHeadline(headline)
          .setLandingPage(landingPage)
          .setPageUrl(pageUrl)
          .setHasNegativeKeyword(hasNegativeKeyword)
          .setHasMatchingKeyword(hasMatchingKeyword)
          .setHasNegativeUrl(hasNegativeUrl)
          .build();
  mockDynamicSearchAdsSearchTermViewService.addResponse(expectedResponse);
  DynamicSearchAdsSearchTermViewName resourceName =
      DynamicSearchAdsSearchTermViewName.of(
          "[CUSTOMER]", "[DYNAMIC_SEARCH_ADS_SEARCH_TERM_VIEW]");
  DynamicSearchAdsSearchTermView actualResponse =
      client.getDynamicSearchAdsSearchTermView(resourceName);
  Assert.assertEquals(expectedResponse, actualResponse);
  List<AbstractMessage> actualRequests = mockDynamicSearchAdsSearchTermViewService.getRequests();
  Assert.assertEquals(1, actualRequests.size());
  GetDynamicSearchAdsSearchTermViewRequest actualRequest =
      (GetDynamicSearchAdsSearchTermViewRequest) actualRequests.get(0);
  Assert.assertEquals(
      resourceName, DynamicSearchAdsSearchTermViewName.parse(actualRequest.getResourceName()));
  Assert.assertTrue(
      channelProvider.isHeaderSent(
          ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
          GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
}