public static void setGroups(Groups groups) {
    UserProvider.groups = groups;
  }
Provide an instance of a user. Allows custom {@link User} creation.
hbase-common/src/main/java/org/apache/hadoop/hbase/security/UserProvider.java