set SftpException as cause when listDirectories throws IOException

for issue MULE-7821
The point of the test is to prove the cause is set rather than blank. @Test(expects....) would not prove the cause is set. Also note the fail() calls which are to highlight the change I made.