@Test
@SuppressWarnings("all")
public void endCampaignExperimentTest() {

  Empty expectedResponse = Empty.newBuilder().build();
  mockCampaignExperimentService.addResponse(expectedResponse);
  String campaignExperiment = "campaignExperiment1027532428";
  client.endCampaignExperiment(campaignExperiment);
  List<AbstractMessage> actualRequests = mockCampaignExperimentService.getRequests();
  Assert.assertEquals(1, actualRequests.size());
  EndCampaignExperimentRequest actualRequest =
      (EndCampaignExperimentRequest) actualRequests.get(0);
  Assert.assertEquals(campaignExperiment, actualRequest.getCampaignExperiment());
  Assert.assertTrue(
      channelProvider.isHeaderSent(
          ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
          GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
}