@Test
public void addCheckpointTest() throws FileDoesNotExistException, SuspectedFileSizeException,
FileAlreadyExistException, InvalidPathException, BlockInfoException, FileNotFoundException,
TachyonException {
int fileId =
mMasterInfo.createFile(new TachyonURI("/testFile"), Constants.DEFAULT_BLOCK_SIZE_BYTE);
ClientFileInfo fileInfo = mMasterInfo.getClientFileInfo(new TachyonURI("/testFile"));
Assert.assertEquals("", fileInfo.getUfsPath());
mMasterInfo.addCheckpoint(-1, fileId, 1, new TachyonURI("/testPath"));
fileInfo = mMasterInfo.getClientFileInfo(new TachyonURI("/testFile"));
Assert.assertEquals("/testPath", fileInfo.getUfsPath());
mMasterInfo.addCheckpoint(-1, fileId, 1, new TachyonURI("/testPath"));
fileInfo = mMasterInfo.getClientFileInfo(new TachyonURI("/testFile"));
Assert.assertEquals("/testPath", fileInfo.getUfsPath());
}