@Test public void createNoParent() throws IOException { // Run the test only for local UFS. Other UFSs succeed if no parents are present Assume.assumeTrue(UnderFileSystemUtils.isLocal(mUfs)); mThrown.expect(IOException.class); String testFile = PathUtils.concatPath(mUnderfsAddress, "createNoParent/testFile"); OutputStream o = mUfs.create(testFile, CreateOptions.defaults(mConfiguration) .setCreateParent(false)); o.close(); }