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

  com.google.ads.googleads.v5.services.CustomerName resourceName2 =
      com.google.ads.googleads.v5.services.CustomerName.of("[CUSTOMER]");
  long id = 3355L;
  String descriptiveName = "descriptiveName-2128097762";
  String currencyCode = "currencyCode1108728155";
  String timeZone = "timeZone36848094";
  String trackingUrlTemplate = "trackingUrlTemplate-1611329070";
  String finalUrlSuffix = "finalUrlSuffix-1825164662";
  boolean autoTaggingEnabled = false;
  boolean hasPartnersBadge = true;
  boolean manager = false;
  boolean testAccount = true;
  double optimizationScore = -1.69982841E8;
  Customer expectedResponse =
      Customer.newBuilder()
          .setResourceName(resourceName2.toString())
          .setId(id)
          .setDescriptiveName(descriptiveName)
          .setCurrencyCode(currencyCode)
          .setTimeZone(timeZone)
          .setTrackingUrlTemplate(trackingUrlTemplate)
          .setFinalUrlSuffix(finalUrlSuffix)
          .setAutoTaggingEnabled(autoTaggingEnabled)
          .setHasPartnersBadge(hasPartnersBadge)
          .setManager(manager)
          .setTestAccount(testAccount)
          .setOptimizationScore(optimizationScore)
          .build();
  mockCustomerService.addResponse(expectedResponse);
  CustomerName resourceName = CustomerName.of("[CUSTOMER]");
  Customer actualResponse = client.getCustomer(resourceName);
  Assert.assertEquals(expectedResponse, actualResponse);
  List<AbstractMessage> actualRequests = mockCustomerService.getRequests();
  Assert.assertEquals(1, actualRequests.size());
  GetCustomerRequest actualRequest = (GetCustomerRequest) actualRequests.get(0);
  Assert.assertEquals(resourceName, CustomerName.parse(actualRequest.getResourceName()));
  Assert.assertTrue(
      channelProvider.isHeaderSent(
          ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
          GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
}