METHOD_0 ( ) { com . sun . mail . test . IDENT_0 server = null ; try { com . sun . mail . IDENT_1 . IDENT_2 handler = new com . sun . mail . IDENT_1 . METHOD_1 ( ) { { { IDENT_3 . add ( STRING_0 ) ; } } @ com . sun . mail . IDENT_1 . Override public void METHOD_2 ( byte [ ] msg ) { message = msg ; } } ; server = new com . sun . mail . test . METHOD_3 ( handler ) ; server . start ( ) ; final java . util . Properties properties = new java . util . Properties ( ) ; properties . setProperty ( STRING_1 , STRING_2 ) ; properties . setProperty ( STRING_3 , ( "" + ( server . METHOD_4 ( ) ) ) ) ; properties . setProperty ( STRING_4 0 , STRING_5 ) ; final javax . mail . IDENT_4 session = javax . mail . IDENT_4 . getInstance ( properties ) ; final javax . mail . IDENT_5 t = session . METHOD_5 ( STRING_6 ) ; try { javax . mail . IDENT_6 . IDENT_7 msg = new javax . mail . IDENT_6 . METHOD_6 ( session ) ; msg . METHOD_7 ( Message . IDENT_8 . IDENT_9 , STRING_7 ) ; msg . METHOD_8 ( "test" ) ; msg . METHOD_9 ( STRING_4 ) ; t . connect ( ) ; t . METHOD_10 ( msg , msg . METHOD_11 ( ) ) ; java . io . ByteArrayOutputStream IDENT_10 = new java . io . ByteArrayOutputStream ( ) ; msg . METHOD_12 ( IDENT_10 ) ; IDENT_10 . close ( ) ; byte [ ] IDENT_11 = IDENT_10 . toByteArray ( ) ; "<AssertPlaceHolder>" ; } catch ( javax . mail . IDENT_12 ex ) { org . junit . Assert . fail ( ex . getMessage ( ) ) ; } finally { t . close ( ) ; } } catch ( final java . lang . Exception e ) { e . printStackTrace ( ) ; org . junit . Assert . fail ( e . getMessage ( ) ) ; } finally { if ( server != null ) { server . METHOD_13 ( ) ; server . METHOD_14 ( ) ; server . join ( ) ; } } } close ( ) { try { super . close ( ) ; } finally { IDENT_13 . close ( ) ; } }
org . junit . Assert . assertArrayEquals ( IDENT_11 , message )