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

  com.google.ads.googleads.v5.services.AssetName resourceName2 =
      com.google.ads.googleads.v5.services.AssetName.of("[CUSTOMER]", "[ASSET]");
  long id = 3355L;
  com.google.ads.googleads.v5.services.AssetName name =
      com.google.ads.googleads.v5.services.AssetName.of("[CUSTOMER]", "[ASSET]");
  Asset expectedResponse =
      Asset.newBuilder()
          .setResourceName(resourceName2.toString())
          .setId(id)
          .setName(name.toString())
          .build();
  mockAssetService.addResponse(expectedResponse);
  AssetName resourceName = AssetName.of("[CUSTOMER]", "[ASSET]");
  Asset actualResponse = client.getAsset(resourceName);
  Assert.assertEquals(expectedResponse, actualResponse);
  List<AbstractMessage> actualRequests = mockAssetService.getRequests();
  Assert.assertEquals(1, actualRequests.size());
  GetAssetRequest actualRequest = (GetAssetRequest) actualRequests.get(0);
  Assert.assertEquals(resourceName, AssetName.parse(actualRequest.getResourceName()));
  Assert.assertTrue(
      channelProvider.isHeaderSent(
          ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
          GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
}