@Bean
	public DefaultFtpSessionFactory ftpSessionFactory() {
		DefaultFtpSessionFactory factory = new DefaultFtpSessionFactory();
		factory.setHost("localhost");
		factory.setPort(this.ftpPort);
		factory.setUsername("foo");
		factory.setPassword("foo");
		return factory;
	}
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