public static boolean checkValidName(final String userName) {
    return userName.startsWith("user") || userName.startsWith("reader")
        || userName.startsWith("writer") || userName.equals("admin") || userName.equals("root")
        || userName.equals("administrator");
  }
A dummy implementation of the {@link Authenticator} interface that expects a user name and
password allowing authentication depending on the format of the user name.

@since GemFire 5.5
geode-dunit/src/main/java/org/apache/geode/security/templates/DummyAuthenticator.java