Configuration conf = new Configuration();
conf.set("fs.http.impl", HoopFileSystem.class.getName());
fs = FileSystem.get(getJettyURL().toURI(), conf);
Path oldPath = new Path(path.toUri().getPath());
Path newPath = new Path(path.getParent(), "bar");
fs.rename(oldPath, newPath);
fs.close();
fs = FileSystem.get(getHadoopConf());
Assert.assertFalse(fs.exists(oldPath));
Assert.assertTrue(fs.exists(newPath));
fs.close();