@Test
public void cached() throws Exception {
File cacheRepo = folder.newFolder();
Configuration configuration = new ConfigurationProvider().newInstance();
LockProvider<Path> locks = new LocalFileLockProvider<Path>(folder.newFolder());
RetryStrategy retrier = new ConstantRetryStrategy();
HadoopFileCacheRepository cache = new HadoopFileCacheRepository(configuration, path(cacheRepo), locks, retrier);
File source = put(folder.newFile(), "Hello, world!");
Path first = cache.resolve(path(source));
long timestamp = file(first).lastModified();