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

  com.google.ads.googleads.v5.services.AdGroupAdAssetViewName resourceName2 =
      com.google.ads.googleads.v5.services.AdGroupAdAssetViewName.of(
          "[CUSTOMER]", "[AD_GROUP_AD_ASSET_VIEW]");
  boolean enabled = false;
  AdGroupAdAssetView expectedResponse =
      AdGroupAdAssetView.newBuilder()
          .setResourceName(resourceName2.toString())
          .setEnabled(enabled)
          .build();
  mockAdGroupAdAssetViewService.addResponse(expectedResponse);
  AdGroupAdAssetViewName resourceName =
      AdGroupAdAssetViewName.of("[CUSTOMER]", "[AD_GROUP_AD_ASSET_VIEW]");
  AdGroupAdAssetView actualResponse = client.getAdGroupAdAssetView(resourceName);
  Assert.assertEquals(expectedResponse, actualResponse);
  List<AbstractMessage> actualRequests = mockAdGroupAdAssetViewService.getRequests();
  Assert.assertEquals(1, actualRequests.size());
  GetAdGroupAdAssetViewRequest actualRequest =
      (GetAdGroupAdAssetViewRequest) actualRequests.get(0);
  Assert.assertEquals(
      resourceName, AdGroupAdAssetViewName.parse(actualRequest.getResourceName()));
  Assert.assertTrue(
      channelProvider.isHeaderSent(
          ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
          GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
}