@Test
	public void testBasicModuleBehavior() throws IOException {
		FtpSource ftpSource = newFtpSource();
		FileSink fileSink = newFileSink();

		File file = new File(ftpSource.getRemoteServerDirectory(), "hello.txt");
		FileWriter fileWriter = new FileWriter(file);
		fileWriter.write("foobar");
		fileWriter.close();

		ftpSource.ensureStarted();

		stream().create(generateStreamName(), "%s | %s --inputType=text/plain", ftpSource, fileSink);

		assertThat(fileSink, eventually(hasTrimmedContentsThat(equalTo("foobar"))));
	}
Tests for the FTP source.

@author Eric Bottard
@author Gunnar Hillert
@author Franck Marchand
@author David Turanski
spring-xd-shell/src/test/java/org/springframework/xd/shell/command/AbstractFtpModulesTests.java