private void testCreate(Path path, boolean override) throws Exception {
Configuration conf = new Configuration();
conf.set("fs.http.impl", HoopFileSystem.class.getName());
FileSystem fs = FileSystem.get(getJettyURL().toURI(), conf);
FsPermission permission = new FsPermission(FsAction.READ_WRITE, FsAction.NONE, FsAction.NONE);
OutputStream os = fs.create(new Path(path.toUri().getPath()), permission, override, 1024,
(short) 2, 100 * 1024 * 1024, null);
os.write(1);
os.close();
fs.close();