public static FileAcquirer returnFile(File file) {
        return new MockFileAcquirer() {
            @Override
            public File waitFor(FileReference fileReference, long timeout, TimeUnit timeUnit) {
                return file;
            }
        };
    }
Creates a FileAcquirer that always returns the given file. *
fileacquirer/src/main/java/com/yahoo/filedistribution/fileacquirer/MockFileAcquirer.java