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

  StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT);
  mockGoogleAdsFieldService.addException(exception);
  try {
    String query = "query107944136";
    client.searchGoogleAdsFields(query);
    Assert.fail("No exception raised");
  } catch (InvalidArgumentException e) {
    // Expected exception
  }
}