@Override
	public void cleanup() {
		// first delete file inside dir
		super.cleanup();
		// then dir itself
		file.getParentFile().delete();
	}
First make a temporary directory where our file will live.
spring-xd-test-fixtures/src/main/java/org/springframework/xd/test/fixtures/FileSource.java