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

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