HDFSFileObject extends AbstractFileObject { @Override public void doCreateFolder() throws Exception { hdfs.mkdirs( hdfs.getPath( getName().getPath() ) ); } HDFSFileObject( final AbstractFileName name, final HDFSFileSystem fileSystem ); @Override void doCreateFolder(); @Override void doDelete();  }
@Test public void testDoCreateFolder() throws Exception { hdfsFileObject.doCreateFolder(); verify( hadoopFileSystem ).mkdirs( hadoopFileSystemPath ); }