assertTrue(fs.exists(scratchDir));
FileStatus[] fStatus = fs.globStatus(scratchDir);
boolean foo = fStatus[0].equals(new FsPermission((short)0777));
assertEquals(new FsPermission((short)0777), fStatus[0].getPermission());
service.stop();
fs.delete(scratchDir, true);
System.clearProperty(stageDirConfigStr);
}
}