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

  StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT);
  mockAdGroupCriterionSimulationService.addException(exception);
  try {
    AdGroupCriterionSimulationName resourceName =
        AdGroupCriterionSimulationName.of("[CUSTOMER]", "[AD_GROUP_CRITERION_SIMULATION]");
    client.getAdGroupCriterionSimulation(resourceName);
    Assert.fail("No exception raised");
  } catch (InvalidArgumentException e) {
    // Expected exception
  }
}