@Test
public void loginCustomerId_notSentIfExcluded() {

  GoogleAdsClient client =
      GoogleAdsClient.newBuilder()
          .setCredentials(fakeCredentials)
          .setDeveloperToken(DEVELOPER_TOKEN)
          .setTransportChannelProvider(localChannelProvider)
          .setEnableGeneratedCatalog(enabledGeneratedCatalog)
          .build();
  mockService.addResponse(SearchGoogleAdsResponse.newBuilder().build());
  try (GoogleAdsServiceClient googleAdsServiceClient =
      client.getLatestVersion().createGoogleAdsServiceClient()) {
    googleAdsServiceClient.search("123", "select blah");
  }
  assertFalse(
      "login customer ID header should be excluded if not configured",
      localChannelProvider.isHeaderSent("login-customer-id", Pattern.compile(".*")));
}