public static void main( String[] args ) throws Exception {
final FileCache cache =
new FileCache( TEST_CAPACITY, PerUserFileCacheKeyMapper.create() );
for ( FileIterator i = new FileIterator( new File( args[0] ), false );
i.hasNext(); ) {
final File file = i.next();
System.err.println( "main(): putting " + file.getAbsolutePath() + ", size = " + (file.length() / (1024*1024)) + " MB" );
final FileInputStream fis = new FileInputStream( file );
final FileChannel fic = fis.getChannel();
final FileOutputStream fos = cache.putToStream( file.getAbsolutePath() );
final FileChannel foc = fos.getChannel();