public static File makeTempDir() {
		try {
			File dir = File.createTempFile("xd-test", "");
			dir.delete();
			dir.mkdirs();
			return dir;
		}
		catch (IOException e) {
			throw new IllegalStateException(e);
		}
	}
Utility method to create an empty directory. Caller is responsible for its explicit deletion.
spring-xd-test-fixtures/src/main/java/org/springframework/xd/test/fixtures/DisposableFileSupport.java