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

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