METHOD_0 ( ) { final org . IDENT_0 . concurrent . future . IDENT_1 < java . lang . Boolean > IDENT_2 = new org . IDENT_0 . concurrent . future . IDENT_1 < java . lang . Boolean > ( ) ; org . IDENT_0 . IDENT_3 . IDENT_4 server = IDENT_5 . METHOD_1 ( STRING_0 , port ) ; server . METHOD_2 ( IDENT_6 ) ; server . METHOD_3 ( true ) ; IDENT_7 . METHOD_4 ( server ) ; final org . IDENT_0 . IDENT_3 . IDENT_8 client = IDENT_5 . METHOD_5 ( STRING_0 , port ) ; client . connect ( ) . get ( ) ; new org . IDENT_0 . test . concurrent . METHOD_6 ( ) { @ org . IDENT_0 . IDENT_3 . IDENT_9 . Override public boolean get ( ) { return ( IDENT_7 . METHOD_7 ( ) . size ( ) ) == 1 ; } } . METHOD_8 ( INT_0 ) ; IDENT_7 . METHOD_7 ( ) . get ( 0 ) . METHOD_9 ( new org . IDENT_0 . IDENT_3 . IDENT_10 . METHOD_10 ( ) { @ org . IDENT_0 . IDENT_3 . IDENT_9 . Override public void METHOD_11 ( org . IDENT_0 . IDENT_3 . IDENT_10 client ) { } @ org . IDENT_0 . IDENT_3 . IDENT_9 . Override public void METHOD_12 ( org . IDENT_0 . IDENT_3 . IDENT_10 client , java . lang . Throwable error ) { IDENT_2 . METHOD_13 ( true ) ; } } ) ; client . write ( IDENT_11 . IDENT_12 . METHOD_14 ( ) ) ; new org . IDENT_0 . test . concurrent . METHOD_6 ( ) { @ org . IDENT_0 . IDENT_3 . IDENT_9 . Override public boolean get ( ) { return ( IDENT_5 . METHOD_15 ( ) ) == 0 ; } } . METHOD_8 ( INT_0 ) ; "<AssertPlaceHolder>" ; } get ( ) { if ( IDENT_13 . METHOD_16 ( ) ) { if ( IDENT_13 . METHOD_17 ( ) ) { final byte b = super . get ( ) ; IDENT_14 += 1 ; return b ; } else { throw new java . lang . IllegalStateException ( org . IDENT_0 . IDENT_3 . IDENT_15 . IDENT_16 . IDENT_17 ) ; } } else { return super . get ( ) ; } }
org . junit . Assert . assertTrue ( IDENT_2 . get ( ) )