One very important aspect of writing tests for the sftp-connector is to assert that the expected files exist in the expected places after a test, specifically after a negative test...
To standardize and simplify this type of test code it is suggested to add a set of assert methods in the test baseclass. AbstractSftpTestCase.
See JavaDoc for details, note however that the expected file/files can contain reg-exp's, i.e. "file-.+" for a filename that starts with "file-".
See SftpArchiveFunctionalTestCase.java for exmaples on usage of the new methods.