建立会话并且认证 
            Session   session   =   Session.getDefaultInstance(props, 
                    new   Authenticator()   { 
                public   PasswordAuthentication   getPasswordAuthentication()   { 
                    return   new   PasswordAuthentication(user,   password); 
                } 
            } 
            ) 
这段代码是不是就是   用账号和密码   连接到邮箱     或者是     登陆到邮箱上 
怎么检查是不是   已经建立好连接了     我想用System.out.print()   来写 哪位高手帮解决一下啊