I am currently trying to mock and OpenSSH session so in the following code, the session.sendCommand(cmd) will always return a fixed value:
session.sendCommand(cmd)
wi