METHOD_0 ( ) { final com . alibaba . IDENT_0 . IDENT_1 . IDENT_2 server = com . alibaba . IDENT_0 . IDENT_1 . IDENT_3 . METHOD_1 ( ) ; final com . alibaba . IDENT_0 . IDENT_1 . IDENT_4 client = com . alibaba . IDENT_0 . IDENT_1 . IDENT_3 . METHOD_2 ( ) ; server . METHOD_3 ( 0 , new com . alibaba . IDENT_0 . IDENT_1 . METHOD_4 ( ) { @ com . alibaba . IDENT_0 . IDENT_1 . Override public com . alibaba . IDENT_0 . IDENT_1 . protocol . IDENT_5 METHOD_5 ( io . netty . channel . IDENT_6 ctx , com . alibaba . IDENT_0 . IDENT_1 . protocol . IDENT_5 request ) { try { return server . METHOD_6 ( ctx . channel ( ) , request , ( 1000 * 10 ) ) ; } catch ( java . lang . IDENT_7 e ) { e . printStackTrace ( ) ; } catch ( com . alibaba . IDENT_0 . IDENT_1 . IDENT_8 e ) { e . printStackTrace ( ) ; } catch ( com . alibaba . IDENT_0 . IDENT_1 . IDENT_9 e ) { e . printStackTrace ( ) ; } return null ; } } , java . util . concurrent . IDENT_10 . METHOD_7 ( ) ) ; client . METHOD_3 ( 0 , new com . alibaba . IDENT_0 . IDENT_1 . METHOD_4 ( ) { @ com . alibaba . IDENT_0 . IDENT_1 . Override public com . alibaba . IDENT_0 . IDENT_1 . protocol . IDENT_5 METHOD_5 ( io . netty . channel . IDENT_6 ctx , com . alibaba . IDENT_0 . IDENT_1 . protocol . IDENT_5 request ) { System . out . println ( ( STRING_0 + request ) ) ; request . METHOD_8 ( STRING_1 ) ; return request ; } } , java . util . concurrent . IDENT_10 . METHOD_7 ( ) ) ; for ( int i = 0 ; i < 3 ; i ++ ) { com . alibaba . IDENT_0 . IDENT_1 . protocol . IDENT_5 request = com . alibaba . IDENT_0 . IDENT_1 . protocol . IDENT_5 . METHOD_9 ( 0 , null ) ; com . alibaba . IDENT_0 . IDENT_1 . protocol . IDENT_5 response = client . METHOD_6 ( STRING_2 , request , ( 1000 * 3 ) ) ; System . out . println ( ( STRING_3 + response ) ) ; "<AssertPlaceHolder>" ; } client . METHOD_10 ( ) ; server . METHOD_10 ( ) ; System . out . println ( STRING_4 ) ; } METHOD_6 ( java . lang . String , com . alibaba . IDENT_0 . IDENT_1 . protocol . IDENT_5 , long ) { long IDENT_11 = java . lang . System . currentTimeMillis ( ) ; java . net . IDENT_12 IDENT_13 = com . alibaba . IDENT_0 . IDENT_1 . common . IDENT_14 . METHOD_11 ( IDENT_15 ) ; java . nio . IDENT_16 . IDENT_17 IDENT_18 = com . alibaba . IDENT_0 . IDENT_1 . common . IDENT_14 . connect ( IDENT_13 ) ; if ( IDENT_18 != null ) { boolean IDENT_19 = false ; try { IDENT_18 . METHOD_12 ( true ) ; IDENT_18 . METHOD_13 ( ) . METHOD_14 ( ( ( int ) ( IDENT_20 ) ) ) ; java . nio . ByteBuffer IDENT_21 = request . encode ( ) ; while ( IDENT_21 . METHOD_15 ( ) ) { int length = IDENT_18 . write ( IDENT_21 ) ; if ( length > 0 ) { if ( IDENT_21 . METHOD_15 ( ) ) { if ( ( ( java . lang . System . currentTimeMillis ( ) ) - IDENT_11 ) > IDENT_20 ) { throw new com . alibaba . IDENT_0 . IDENT_1 . exception . METHOD_16 ( IDENT_15 ) ; } } } else { throw new com . alibaba . IDENT_0 . IDENT_1 . exception . METHOD_16 ( IDENT_15 ) ; } java . lang . Thread . sleep ( 1 ) ; } IDENT_19 = true ; java . nio . ByteBuffer IDENT_22 = java . nio . ByteBuffer . METHOD_17 ( 4 ) ; while ( IDENT_22 . METHOD_15 ( ) ) { int length = IDENT_18 . read ( IDENT_22 ) ; if ( length > 0 ) { if ( IDENT_22 . METHOD_15 ( ) ) { if ( ( ( java . lang . System . currentTimeMillis ( ) ) - IDENT_11 ) > IDENT_20 ) { throw new com . alibaba . IDENT_0 . IDENT_1 . exception . METHOD_18 ( IDENT_15 , IDENT_20 ) ; } } } else { throw new com . alibaba . IDENT_0 . IDENT_1 . exception . METHOD_18 ( IDENT_15 , IDENT_20 ) ; } java . lang . Thread . sleep ( 1 ) ; } int size = IDENT_22 . METHOD_19 ( 0 ) ; java . nio . ByteBuffer IDENT_23 = java . nio . ByteBuffer . METHOD_17 ( size ) ; while ( IDENT_23 . METHOD_15 ( ) ) { int length = IDENT_18 . read ( IDENT_23 ) ; if ( length > 0 ) { if ( IDENT_23 . METHOD_15 ( ) ) { if ( ( ( java . lang . System . currentTimeMillis ( ) ) - IDENT_11 ) > IDENT_20 ) { throw new com . alibaba . IDENT_0 . IDENT_1 . exception . METHOD_18 ( IDENT_15 , IDENT_20 ) ; } } } else { throw new com . alibaba . IDENT_0 . IDENT_1 . exception . METHOD_18 ( IDENT_15 , IDENT_20 ) ; } java . lang . Thread . sleep ( 1 ) ; } IDENT_23 . METHOD_20 ( ) ; return com . alibaba . IDENT_0 . IDENT_1 . protocol . IDENT_5 . decode ( IDENT_23 ) ; } catch ( java . io . IOException e ) { e . printStackTrace ( ) ; if ( IDENT_19 ) { throw new com . alibaba . IDENT_0 . IDENT_1 . exception . METHOD_18 ( IDENT_15 , IDENT_20 ) ; } else { throw new com . alibaba . IDENT_0 . IDENT_1 . exception . METHOD_16 ( IDENT_15 ) ; } } finally { try { IDENT_18 . close ( ) ; } catch ( java . io . IOException e ) { e . printStackTrace ( ) ; } } } else { throw new com . alibaba . IDENT_0 . IDENT_1 . exception . METHOD_21 ( IDENT_15 ) ; } }
org . junit . Assert . assertTrue ( ( response != null ) )