@Test
 public void testCreateFileOverRoot() throws Throwable {
   Path root = new Path("/");
   byte[] dataset = dataset(1024, ' ', 'z');
   try {
     createFile(getFileSystem(), root, false, dataset);
     fail("expected an exception, got a file created over root: " + ls(root));
   } catch (IOException e) {
     // expected
     handleExpectedException(e);
   }
   assertIsDirectory(root);
 }