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

  com.google.ads.googleads.v5.services.CampaignExperimentName resourceName2 =
      com.google.ads.googleads.v5.services.CampaignExperimentName.of(
          "[CUSTOMER]", "[CAMPAIGN_EXPERIMENT]");
  CampaignExperiment expectedResponse =
      CampaignExperiment.newBuilder().setResourceName(resourceName2.toString()).build();
  mockCampaignExperimentService.addResponse(expectedResponse);
  CampaignExperimentName resourceName =
      CampaignExperimentName.of("[CUSTOMER]", "[CAMPAIGN_EXPERIMENT]");
  CampaignExperiment actualResponse = client.getCampaignExperiment(resourceName);
  Assert.assertEquals(expectedResponse, actualResponse);
  List<AbstractMessage> actualRequests = mockCampaignExperimentService.getRequests();
  Assert.assertEquals(1, actualRequests.size());
  GetCampaignExperimentRequest actualRequest =
      (GetCampaignExperimentRequest) actualRequests.get(0);
  Assert.assertEquals(
      resourceName, CampaignExperimentName.parse(actualRequest.getResourceName()));
  Assert.assertTrue(
      channelProvider.isHeaderSent(
          ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
          GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
}