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

UnderStorageType.NO_PERSIST, 10);
mFsShell.run("chown", "user1", "/testFile");
TachyonFile tf = mTfs.open(new TachyonURI("/testFile"));
String owner = mTfs.getInfo(tf).getUserName();</BUG>
Assert.assertEquals("user1", owner);

import tachyon.shell.AbstractTfsShellTest;
public class ChownCommandTest extends AbstractTfsShellTest {
@Test
public void chownTest() throws IOException, TachyonException {
Whitebox.setInternalState(LoginUser.class, "sLoginUser", (String) null);
TachyonFSTestUtils.createByteFile(mTfs, "/testFile", WriteType.MUST_CACHE, 10);
mFsShell.run("chown", "user1", "/testFile");
String owner = mTfs.getStatus(new TachyonURI("/testFile")).getUserName();
Assert.assertEquals("user1", owner);
