StepContext stepContext = new StepContext(stepExecution);
ChunkContext chunkContext = new ChunkContext(stepContext);
RemoteFileTemplate template = new RemoteFileTemplate(factory);
template.setBeanFactory(mock(BeanFactory.class));
template.afterPropertiesSet();
// clean up from old tests
FileSystem fs = this.hadoopFileSystemTestSupport.getResource();
Path p = new Path("/qux/foo.txt");
fs.delete(p, true);