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

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