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

  com.google.ads.googleads.v5.services.AdGroupAdName resourceName2 =
      com.google.ads.googleads.v5.services.AdGroupAdName.of("[CUSTOMER]", "[AD_GROUP_AD]");
  AdGroupName adGroup = AdGroupName.of("[CUSTOMER]", "[AD_GROUP]");
  AdGroupAd expectedResponse =
      AdGroupAd.newBuilder()
          .setResourceName(resourceName2.toString())
          .setAdGroup(adGroup.toString())
          .build();
  mockAdGroupAdService.addResponse(expectedResponse);
  AdGroupAdName resourceName = AdGroupAdName.of("[CUSTOMER]", "[AD_GROUP_AD]");
  AdGroupAd actualResponse = client.getAdGroupAd(resourceName);
  Assert.assertEquals(expectedResponse, actualResponse);
  List<AbstractMessage> actualRequests = mockAdGroupAdService.getRequests();
  Assert.assertEquals(1, actualRequests.size());
  GetAdGroupAdRequest actualRequest = (GetAdGroupAdRequest) actualRequests.get(0);
  Assert.assertEquals(resourceName, AdGroupAdName.parse(actualRequest.getResourceName()));
  Assert.assertTrue(
      channelProvider.isHeaderSent(
          ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
          GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
}