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

  StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT);
  mockCampaignCriterionSimulationService.addException(exception);
  try {
    CampaignCriterionSimulationName resourceName =
        CampaignCriterionSimulationName.of("[CUSTOMER]", "[CAMPAIGN_CRITERION_SIMULATION]");
    client.getCampaignCriterionSimulation(resourceName);
    Assert.fail("No exception raised");
  } catch (InvalidArgumentException e) {
    // Expected exception
  }
}