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

  StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT);
  mockCampaignAudienceViewService.addException(exception);
  try {
    CampaignAudienceViewName resourceName =
        CampaignAudienceViewName.of("[CUSTOMER]", "[CAMPAIGN_AUDIENCE_VIEW]");
    client.getCampaignAudienceView(resourceName);
    Assert.fail("No exception raised");
  } catch (InvalidArgumentException e) {
    // Expected exception
  }
}