Trash extends Configured { public Trash(Configuration conf) throws IOException { this(FileSystem.get(conf), conf); } Trash(Configuration conf);  Trash(FileSystem fs, Configuration conf); static boolean moveToAppropriateTrash(FileSystem fs, Path p,
      Configuration conf); boolean isEnabled(); boolean moveToTrash(Path path); void checkpoint(); void expunge(); void expungeImmediately(); Runnable getEmptier(); Path getCurrentTrashDir(Path path);  }
@Test public void testTrash() throws Exception { Configuration conf = new Configuration(); conf.setClass("fs.file.impl", TestLFS.class, FileSystem.class); trashShell(FileSystem.getLocal(conf), TEST_DIR); }