CLITaskConnector { public Session getSession() { return session; } CLITaskConnector( String sshUser, String sshPwd, String ipAddress, int sshPort ); Session getSession(); void createConnection(); void destroy();  }
@Test @Ignore public void testGetSession() throws Exception { logger.info( "[TS] : testGetSession" ); String username = "root"; String password = "root123"; String hostname = "10.28.197.24"; int port = 22; CLITaskConnector instance = new CLITaskConnector( username, password, hostname, port ); instance.createConnection(); logger.info( "[TS] : Expected Result: Session = NOT NULL, Actual Result: Session=" + instance.getSession() ); assertNotNull( instance.getSession() ); }