@Test
@SuppressWarnings("all")
public void getPaidOrganicSearchTermViewExceptionTest() throws Exception {

  StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT);
  mockPaidOrganicSearchTermViewService.addException(exception);
  try {
    PaidOrganicSearchTermViewName resourceName =
        PaidOrganicSearchTermViewName.of("[CUSTOMER]", "[PAID_ORGANIC_SEARCH_TERM_VIEW]");
    client.getPaidOrganicSearchTermView(resourceName);
    Assert.fail("No exception raised");
  } catch (InvalidArgumentException e) {
    // Expected exception
  }
}