METHOD_0 ( ) { int port = org . IDENT_0 . Utils . METHOD_1 ( ) ; org . IDENT_0 . IDENT_1 . Context context = org . IDENT_0 . IDENT_1 . context ( 1 ) ; java . nio . ByteBuffer IDENT_2 = java . nio . ByteBuffer . METHOD_2 ( 4 ) . order ( java . nio . IDENT_3 . METHOD_3 ( ) ) ; org . IDENT_0 . IDENT_1 . IDENT_4 IDENT_5 = null ; org . IDENT_0 . IDENT_1 . IDENT_4 IDENT_6 = null ; try { IDENT_5 = context . METHOD_4 ( IDENT_7 . IDENT_8 ) ; IDENT_6 = context . METHOD_4 ( IDENT_7 . IDENT_9 ) ; IDENT_6 . METHOD_5 ( ( STRING_0 + port ) ) ; IDENT_5 . connect ( ( STRING_1 + port ) ) ; IDENT_2 . put ( STRING_2 . getBytes ( IDENT_1 . IDENT_10 ) ) ; IDENT_2 . METHOD_6 ( ) ; java . lang . Thread . sleep ( 1000 ) ; IDENT_5 . METHOD_7 ( IDENT_2 , 0 ) ; java . lang . String actual = new java . lang . String ( IDENT_6 . METHOD_8 ( ) , IDENT_1 . IDENT_10 ) ; "<AssertPlaceHolder>" ; } finally { try { IDENT_5 . close ( ) ; } catch ( java . lang . Exception IDENT_11 ) { } try { IDENT_6 . close ( ) ; } catch ( java . lang . Exception IDENT_11 ) { } try { context . METHOD_9 ( ) ; } catch ( java . lang . Exception IDENT_11 ) { } } } METHOD_8 ( ) { int IDENT_12 = 0 ; while ( IDENT_12 == 0 ) { try { IDENT_13 . METHOD_10 ( ) ; IDENT_12 = r . read ( IDENT_13 ) ; } catch ( java . nio . IDENT_14 . IDENT_15 e ) { IDENT_16 . set ( IDENT_17 . IDENT_18 ) ; return ; } catch ( java . io . IOException e ) { throw new IDENT_19 . IDENT_17 . IOException ( e ) ; } } assert IDENT_12 == 1 ; ( IDENT_20 ) ++ ; }
org . junit . Assert . assertEquals ( STRING_2 , actual )