import tachyon.shell.AbstractTfsShellTest;
public class ChgrpCommandTest extends AbstractTfsShellTest {
@Test
public void chgrpTest() throws IOException, TachyonException {
Whitebox.setInternalState(LoginUser.class, "sLoginUser", (String) null);
<BUG>TachyonFSTestUtils.createByteFile(mTfs, "/testFile", TachyonStorageType.STORE,

UnderStorageType.NO_PERSIST, 10);
mFsShell.run("chgrp", "group1", "/testFile");
TachyonFile tf = mTfs.open(new TachyonURI("/testFile"));
String group = mTfs.getInfo(tf).getGroupName();</BUG>
Assert.assertEquals("group1", group);

import tachyon.shell.AbstractTfsShellTest;
public class ChgrpCommandTest extends AbstractTfsShellTest {
@Test
public void chgrpTest() throws IOException, TachyonException {
Whitebox.setInternalState(LoginUser.class, "sLoginUser", (String) null);
TachyonFSTestUtils.createByteFile(mTfs, "/testFile", WriteType.MUST_CACHE, 10);
mFsShell.run("chgrp", "group1", "/testFile");
String group = mTfs.getStatus(new TachyonURI("/testFile")).getGroupName();
Assert.assertEquals("group1", group);
