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

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