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

  StatusRuntimeException exception = new StatusRuntimeException(Status.INVALID_ARGUMENT);
  mockCampaignExperimentService.addException(exception);
  try {
    String campaignExperiment = "campaignExperiment1027532428";
    client.endCampaignExperiment(campaignExperiment);
    Assert.fail("No exception raised");
  } catch (InvalidArgumentException e) {
    // Expected exception
  }
}