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

  StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT);
  mockAdGroupCriterionService.addException(exception);
  try {
    AdGroupCriterionName resourceName =
        AdGroupCriterionName.of("[CUSTOMER]", "[AD_GROUP_CRITERION]");
    client.getAdGroupCriterion(resourceName);
    Assert.fail("No exception raised");
  } catch (InvalidArgumentException e) {
    // Expected exception
  }
}