SWC-1853: check for duplicate file name before sftp upload, and confirm new version creation
add tests and fix discovered bugs
verify mock is called
Merge pull request #1347 from jay-hodgson/SWC-1853

Swc-1853: check for existing filename on sftp upload