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

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