METHOD_0 ( ) { int IDENT_0 = 16 ; int IDENT_1 = 16 ; int IDENT_2 = 1 ; org . apache . IDENT_3 . http . server . IDENT_4 IDENT_5 = new org . apache . IDENT_3 . http . server . METHOD_1 ( ) ; final org . apache . IDENT_3 . http . server . IDENT_6 config = org . apache . IDENT_3 . http . server . IDENT_7 . METHOD_2 ( ) . METHOD_3 ( IDENT_0 ) . METHOD_4 ( IDENT_1 ) . build ( ) ; org . apache . IDENT_3 . http . server . IDENT_8 server = new org . apache . IDENT_3 . http . server . METHOD_5 ( IDENT_5 . METHOD_6 ( ) , IDENT_5 . METHOD_7 ( ) , org . apache . IDENT_3 . test . http . IDENT_9 . IDENT_10 , config ) ; org . apache . IDENT_3 . test . http . servlet . IDENT_11 servlet = new org . apache . IDENT_3 . test . http . servlet . METHOD_8 ( server . ctx ( ) , new java . lang . String [ ] { org . apache . IDENT_3 . test . http . IDENT_9 . IDENT_12 } ) ; server . METHOD_9 ( servlet ) ; IDENT_5 . add ( server ) ; IDENT_5 . start ( ) ; try { request ( IDENT_2 ) ; for ( java . util . concurrent . IDENT_13 < java . lang . IDENT_14 > IDENT_15 : org . apache . IDENT_3 . test . http . IDENT_9 . IDENT_16 ) { IDENT_15 . get ( ) ; } "<AssertPlaceHolder>" ; java . lang . reflect . Field IDENT_17 = server . getClass ( ) . METHOD_10 ( STRING_0 ) ; IDENT_17 . METHOD_11 ( true ) ; java . lang . reflect . Field IDENT_18 = server . getClass ( ) . METHOD_10 ( STRING_1 ) ; IDENT_18 . METHOD_11 ( true ) ; io . netty . channel . IDENT_19 channel = ( ( io . netty . channel . IDENT_19 ) ( IDENT_17 . get ( server ) ) ) ; channel . close ( ) ; java . lang . Thread . sleep ( 1000 ) ; final int IDENT_20 = 10 ; for ( int i = 0 ; i < IDENT_20 ; i ++ ) { java . lang . Thread IDENT_15 = ( ( java . lang . Thread ) ( IDENT_18 . get ( server ) ) ) ; if ( IDENT_15 == null ) { break ; } org . apache . IDENT_3 . test . http . IDENT_9 . LOGGER . log ( IDENT_21 . IDENT_22 , ( ( ( STRING_2 + ( i + 1 ) ) + STRING_3 ) + ( IDENT_15 . getId ( ) ) ) ) ; if ( i == ( IDENT_20 - 1 ) ) { throw new java . lang . Exception ( ( ( STRING_4 + IDENT_20 ) + STRING_5 ) ) ; } java . lang . Thread . sleep ( 1000 ) ; } for ( int i = 0 ; i < IDENT_20 ; i ++ ) { request ( 1 ) ; for ( java . util . concurrent . IDENT_13 < java . lang . IDENT_14 > IDENT_15 : org . apache . IDENT_3 . test . http . IDENT_9 . IDENT_16 ) { IDENT_15 . get ( ) ; } if ( ( IDENT_2 + 1 ) == ( org . apache . IDENT_3 . test . http . IDENT_9 . IDENT_23 . get ( ) ) ) { break ; } else if ( i == ( IDENT_20 - 1 ) ) { throw new java . lang . Exception ( ( ( STRING_6 + IDENT_20 ) + STRING_5 ) ) ; } } } finally { IDENT_5 . METHOD_12 ( ) ; } } get ( ) { return IDENT_24 ; }
org . junit . Assert . assertEquals ( IDENT_2 , org . apache . IDENT_3 . test . http . IDENT_9 . IDENT_23 . get ( ) )