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 resolved = cache.resolve(path(source));
assertThat(get(file(resolved)), is("Hello, world!"));
assertThat(resolved, is(not(path(source))));
assertThat(containsFile(cacheRepo, file(resolved)), is(true));
}