// TODO the testcommand should be defined by an option
String checkShellCommand = "echo %ComSpec%";
logger.debug("Opening new session...");
objSSHSession = this.getSshConnection().openSession();
logger.debug("Executing command " + checkShellCommand);
objSSHSession.execCommand(checkShellCommand);
logger.debug("output to stdout for remote command: " + checkShellCommand);
ipsStdOut = new StreamGobbler(objSSHSession.getStdout());
ipsStdErr = new StreamGobbler(objSSHSession.getStderr());
BufferedReader stdoutReader = new BufferedReader(new InputStreamReader(ipsStdOut));