@PostConstruct
	public void before() throws Throwable {
		this.ftpFolder.create();
		this.localFolder.create();

		FtpServerFactory serverFactory = new FtpServerFactory();
		serverFactory.setUserManager(new TestUserManager(this.ftpRootFolder.getAbsolutePath()));

		ListenerFactory factory = new ListenerFactory();
		factory.setPort(ftpPort);
		serverFactory.addListener("default", factory.createListener());

		server = serverFactory.createServer();
		server.start();
	}
Embedded FTP Server for test cases; exposes an associated session factory as a @Bean.

@author Artem Bilan
@author Gary Russell
@since 3.0
spring-xd-shell/src/test/java/org/springframework/xd/shell/util/TestFtpServer.java