The MockFtpServer project provides a mock/dummy FTP server for testing FTP client code. It can be configured to return custom data or reply codes, to simulate either success or failure scenarios. You can also verify expected command invocations.
Homepage POM file JAR file Javadoc'org.mockftpserver:MockFtpServer:1.2.2'