public class ChmodrCommandTest extends AbstractTfsShellTest {
@Test
public void chmodrTest() throws IOException, TachyonException {
Whitebox.setInternalState(LoginUser.class, "sLoginUser", (String) null);
mFsShell.run("mkdir", "/testFolder1");
<BUG>TachyonFSTestUtils.createByteFile(mTfs, "/testFolder1/testFile", TachyonStorageType.STORE,

UnderStorageType.NO_PERSIST, 10);
mFsShell.run("chmodr", "777", "/testFolder1");
TachyonFile tf = mTfs.open(new TachyonURI("/testFolder1"));
int permission = mTfs.getInfo(tf).getPermission();</BUG>
Assert.assertEquals((short) 0777, permission);

public class ChmodrCommandTest extends AbstractTfsShellTest {
@Test
public void chmodrTest() throws IOException, TachyonException {
Whitebox.setInternalState(LoginUser.class, "sLoginUser", (String) null);
mFsShell.run("mkdir", "/testFolder1");
TachyonFSTestUtils.createByteFile(mTfs, "/testFolder1/testFile", WriteType.MUST_CACHE, 10);
mFsShell.run("chmodr", "777", "/testFolder1");
int permission = mTfs.getStatus(new TachyonURI("/testFolder1")).getPermission();
Assert.assertEquals((short) 0777, permission);
