This last step is the one that fails. It doesn't even reach the session.openChannel ("sftp") step. The odd thing is that this is exactly what you're executing manually. It's not the file system code ...
Fake SFTP Server Rule is a JUnit rule that runs an in-memory SFTP server while your tests are running. It uses the SFTP server of the Apache SSHD project. Fake SFTP Server Rule is published under the ...