@Test
public void getFileStatus() throws IOException {

	final String sign = "file_status";
	FilePath file = new FilePath(new Path(folder.getRoot().toPath().toString(), sign), new LocalFileSystem());
	try {
		file.getFileSystem().getFileStatus(file.getPathStr());
		Assert.fail("file not exist. It should throw exception.");
	} catch (IOException e) {
		// pass
	}
	writeFile(file, sign);
	FileStatus fileStatus = file.getFileSystem().getFileStatus(file.getPathStr());
	Assert.assertFalse(fileStatus.isDir());
}