SftpClient.Attributes attrs = sftp.stat(h);
Assert.assertNotNull(attrs);
sftp.close(h);
h = sftp.openDir("target/sftp/client");
SftpClient.DirEntry[] dir = sftp.readDir(h);
assertNotNull(dir);
assertEquals(1, dir.length);
assertNull(sftp.readDir(h));
sftp.close(h);