private void setPermissions(String locn, String permissions) throws Exception {
    FileSystem fs = FileSystem.get(new URI(locn), clientHiveConf);
    fs.setPermission(new Path(locn), FsPermission.valueOf(permissions));
  }
TestStorageBasedClientSideAuthorizationProvider : Overrides
TestClientSideAuthorizationProvider to test StorageBasedAuthorizationProvider
on the client side.
itests/hive-unit/src/test/java/org/apache/hadoop/hive/ql/security/TestStorageBasedClientSideAuthorizationProvider.java