Path localDir = new Path("file:///tmp/test");
Path localFile = new Path("file:///tmp/test/file");
Path link = new Path(testBaseDir1(), "linkToFile");
FileContext localFc = FileContext.getLocalFSFileContext();
localFc.delete(new Path("file:///tmp/test"), true);
localFc.mkdir(localDir, FileContext.DEFAULT_PERM, true);
localFc.setWorkingDirectory(localDir);
assertEquals(localDir, localFc.getWorkingDirectory());
createAndWriteFile(localFc, localFile);
fc.createSymlink(localFile, link, false);
readFile(link);