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

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