### Question:
CLITaskConnector { public void destroy() throws Exception { if ( session != null ) session.disconnect(); this.session = null; this.sshUser = null; this.sshPwd = null; this.ipAddress = null; } CLITaskConnector( String sshUser, String sshPwd, String ipAddress, int sshPort ); Session getSession(); void createConnection(); void destroy();  }### Answer:
@Test @Ignore public void testDestroy() throws Exception { logger.info( "[TS] : testCreateConnection" ); 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(); instance.destroy(); logger.info( "[TS] : Expected Result: Session = NULL, Actual Result: Session=" + instance.getSession() ); assertNull( instance.getSession() ); }