public static boolean isConfluentCustomer(final String customerId) {
    return customerId != null
        && (CUSTOMER_PATTERN.matcher(customerId.toLowerCase(Locale.ROOT)).matches()
        || NEW_CUSTOMER_CASE_INSENSISTIVE_PATTERN.matcher(customerId).matches()
        || NEW_CUSTOMER_CASE_SENSISTIVE_PATTERN.matcher(customerId).matches());
  }
@Test
  public void testInvalidCustomer() {
    String[] invalidIds = Stream.concat(
        CustomerIdExamples.INVALID_CUSTOMER_IDS.stream(),
        CustomerIdExamples.VALID_ANONYMOUS_IDS.stream()).
        toArray(String[]::new);
    for (String invalidCustomerId : invalidIds) {
      assertFalse(invalidCustomerId + " is a valid customer identifier",
          BaseSupportConfig.isConfluentCustomer(invalidCustomerId));
    }
  }