private ListMultimap<String, UserPermission> updatePermissions(
    ListMultimap<String, UserPermission> permissions, User user, Permission.Action... actions) {
    List<UserPermission> acl = new ArrayList<>(1);
    acl.add(new UserPermission(user.getShortName(),
      Permission.newBuilder(TEST_TABLE).withActions(actions).build()));
    permissions.putAll(user.getShortName(), acl);
    return permissions;
  }
Test the reading and writing of access permissions to and from zookeeper.
hbase-server/src/test/java/org/apache/hadoop/hbase/security/access/TestZKPermissionWatcher.java