### Question:
SSHClient { public SSHClientOutput execCommand(String command) throws Exception { return execCommand(command, 7200, null); } SSHClient(String hostname, String username, String password); void scpFileToRemote(String localFile, String remoteTargetDirectory); void scpFileToLocal(String rfile, String lfile); SSHClientOutput execCommand(String command); SSHClientOutput execCommand(String command, int timeoutSeconds, Logger logAppender);  }### Answer:
@Test public void testCmd() throws Exception { if (isRemote == false) return; SSHClient ssh = new SSHClient(this.hostname, this.username, this.password); SSHClientOutput output = ssh.execCommand("echo hello"); assertEquals(0, output.getExitCode()); assertEquals("hello\n", output.getText()); }