SshHelper { protected static void throwSshExceptionIfStdoutOrStdeerIsNull(InputStream stdout, InputStream stderr) throws SshException { if (stdout == null || stderr == null) { String msg = "Stdout or Stderr of SSH session is null"; s_logger.error(msg); throw new SshException(msg); } }  static Pair<Boolean, String> sshExecute(String host, int port, String user, File pemKeyFile, String password, String command); static void scpTo(String host, int port, String user, File pemKeyFile, String password, String remoteTargetDirectory, String localFile, String fileMode); static void scpTo(String host, int port, String user, File pemKeyFile, String password, String remoteTargetDirectory, byte[] data, String remoteFileName,
            String fileMode); static void scpTo(String host, int port, String user, File pemKeyFile, String password, String remoteTargetDirectory, String localFile, String fileMode,
            int connectTimeoutInMs, int kexTimeoutInMs); static void scpTo(String host, int port, String user, File pemKeyFile, String password, String remoteTargetDirectory, byte[] data, String remoteFileName,
            String fileMode, int connectTimeoutInMs, int kexTimeoutInMs); static Pair<Boolean, String> sshExecute(String host, int port, String user, File pemKeyFile, String password, String command, int connectTimeoutInMs,
            int kexTimeoutInMs,
            int waitResultTimeoutInMs);  }
@Test(expected = SshException.class) public void throwSshExceptionIfStdoutOrStdeerIsNullTestNull() throws SshException { SshHelper.throwSshExceptionIfStdoutOrStdeerIsNull(null, null); }
@Test public void throwSshExceptionIfStdoutOrStdeerIsNullTestNotNull() throws SshException { InputStream inputStream = Mockito.mock(InputStream.class); SshHelper.throwSshExceptionIfStdoutOrStdeerIsNull(inputStream, inputStream); }