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

  com.google.ads.googleads.v5.services.CampaignAssetName resourceName2 =
      com.google.ads.googleads.v5.services.CampaignAssetName.of(
          "[CUSTOMER]", "[CAMPAIGN_ASSET]");
  CampaignName campaign = CampaignName.of("[CUSTOMER]", "[CAMPAIGN]");
  AssetName asset = AssetName.of("[CUSTOMER]", "[ASSET]");
  CampaignAsset expectedResponse =
      CampaignAsset.newBuilder()
          .setResourceName(resourceName2.toString())
          .setCampaign(campaign.toString())
          .setAsset(asset.toString())
          .build();
  mockCampaignAssetService.addResponse(expectedResponse);
  CampaignAssetName resourceName = CampaignAssetName.of("[CUSTOMER]", "[CAMPAIGN_ASSET]");
  CampaignAsset actualResponse = client.getCampaignAsset(resourceName);
  Assert.assertEquals(expectedResponse, actualResponse);
  List<AbstractMessage> actualRequests = mockCampaignAssetService.getRequests();
  Assert.assertEquals(1, actualRequests.size());
  GetCampaignAssetRequest actualRequest = (GetCampaignAssetRequest) actualRequests.get(0);
  Assert.assertEquals(resourceName, CampaignAssetName.parse(actualRequest.getResourceName()));
  Assert.assertTrue(
      channelProvider.isHeaderSent(
          ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
          GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
}