METHOD_0 ( ) { final org . glassfish . IDENT_0 . http . server . IDENT_1 server = new org . glassfish . IDENT_0 . http . server . METHOD_1 ( ) ; final org . glassfish . IDENT_0 . http . server . IDENT_2 listener = new org . glassfish . IDENT_0 . http . server . METHOD_2 ( STRING_0 0 , METHOD_2 . IDENT_3 , org . glassfish . IDENT_0 . http . server . IDENT_4 . IDENT_5 ) ; server . METHOD_3 ( listener ) ; final org . glassfish . IDENT_0 . impl . IDENT_6 < java . lang . String > IDENT_7 = org . glassfish . IDENT_0 . impl . IDENT_8 . create ( ) ; org . glassfish . IDENT_0 . IDENT_9 . IDENT_10 IDENT_11 = org . glassfish . IDENT_0 . IDENT_9 . IDENT_10 . METHOD_4 ( ) ; IDENT_11 . add ( new org . glassfish . IDENT_0 . IDENT_9 . METHOD_5 ( ) ) ; IDENT_11 . add ( new org . glassfish . IDENT_0 . http . METHOD_6 ( ) ) ; IDENT_11 . add ( new org . glassfish . IDENT_0 . IDENT_9 . METHOD_7 ( ) { MOD_0 final org . glassfish . IDENT_0 . http . server . StringBuilder sb = new java . lang . StringBuilder ( ) ; @ org . glassfish . IDENT_0 . http . server . Override public org . glassfish . IDENT_0 . IDENT_9 . IDENT_12 METHOD_8 ( org . glassfish . IDENT_0 . IDENT_9 . IDENT_13 ctx ) throws java . io . IOException { final org . glassfish . IDENT_0 . http . IDENT_14 IDENT_15 = org . glassfish . IDENT_0 . http . IDENT_14 . builder ( ) . method ( STRING_1 ) . uri ( STRING_0 ) . protocol ( IDENT_16 . IDENT_17 ) . header ( STRING_0 9 , ( STRING_2 + ( org . glassfish . IDENT_0 . http . server . IDENT_4 . IDENT_5 ) ) ) . build ( ) ; ctx . write ( IDENT_15 ) ; return ctx . METHOD_9 ( ) ; } @ org . glassfish . IDENT_0 . http . server . Override public org . glassfish . IDENT_0 . IDENT_9 . IDENT_12 METHOD_10 ( org . glassfish . IDENT_0 . IDENT_9 . IDENT_13 ctx ) throws java . io . IOException { org . glassfish . IDENT_0 . http . IDENT_18 message = ctx . getMessage ( ) ; org . glassfish . IDENT_0 . IDENT_19 b = message . METHOD_11 ( ) ; if ( b . METHOD_12 ( ) ) { sb . append ( b . METHOD_13 ( ) ) ; } if ( message . METHOD_14 ( ) ) { IDENT_7 . result ( sb . toString ( ) ) ; } return ctx . METHOD_9 ( ) ; } } ) ; final org . glassfish . IDENT_0 . nio . transport . IDENT_20 IDENT_21 = org . glassfish . IDENT_0 . nio . transport . IDENT_22 . newInstance ( ) . build ( ) ; IDENT_21 . METHOD_15 ( IDENT_11 . build ( ) ) ; final org . glassfish . IDENT_0 . http . server . IDENT_23 IDENT_24 = new org . glassfish . IDENT_0 . http . server . METHOD_16 ( ) { @ org . glassfish . IDENT_0 . http . server . Override public void service ( final org . glassfish . IDENT_0 . http . server . IDENT_25 request , final org . glassfish . IDENT_0 . http . server . Response response ) throws org . glassfish . IDENT_0 . http . server . Exception { response . METHOD_17 ( STRING_0 1 ) ; response . METHOD_18 ( STRING_3 ) ; response . METHOD_19 ( 0 ) ; final org . glassfish . IDENT_0 . http . io . IDENT_26 out = response . METHOD_20 ( ) ; out . write ( STRING_0 4 ) ; out . write ( STRING_4 . getBytes ( STRING_3 ) ) ; out . write ( STRING_5 . METHOD_21 ( ) ) ; out . write ( STRING_6 . getBytes ( STRING_3 ) ) ; out . write ( STRING_0 7 ) ; out . write ( STRING_0 FLOAT_0 getBytes ( STRING_3 ) ) ; out . write ( STRING_0 FLOAT_1 METHOD_21 ( ) ) ; out . write ( STRING_0 FLOAT_2 METHOD_21 ( ) ) ; out . write ( STRING_0 FLOAT_3 getBytes ( STRING_3 ) ) ; out . write ( STRING_7 . getBytes ( STRING_3 ) ) ; out . write ( STRING_8 ) ; } } ; server . METHOD_22 ( ) . METHOD_23 ( IDENT_24 , STRING_0 ) ; try { server . start ( ) ; IDENT_21 . start ( ) ; java . util . concurrent . IDENT_27 < org . glassfish . IDENT_0 . IDENT_28 > IDENT_29 = IDENT_21 . connect ( STRING_9 , org . glassfish . IDENT_0 . http . server . IDENT_4 . IDENT_5 ) ; org . glassfish . IDENT_0 . IDENT_28 connection = null ; try { connection = IDENT_29 . get ( 10 , TimeUnit . IDENT_30 ) ; java . lang . String IDENT_31 = IDENT_7 . get ( 10 , TimeUnit . IDENT_30 ) ; "<AssertPlaceHolder>" ; } finally { if ( connection != null ) { connection . METHOD_24 ( ) ; } } } catch ( java . io . IOException e ) { e . printStackTrace ( ) ; org . junit . Assert . fail ( ) ; } finally { IDENT_21 . METHOD_25 ( ) ; server . METHOD_25 ( ) ; } } get ( org . glassfish . IDENT_0 . IDENT_9 . IDENT_13 . Operation , int ) { final int IDENT_32 = operation . METHOD_26 ( ) ; final org . glassfish . IDENT_0 . IDENT_9 . IDENT_33 . IDENT_34 IDENT_35 = state [ IDENT_32 ] [ IDENT_36 ] ; if ( ( IDENT_35 != null ) && ( IDENT_35 . isValid ) ) { return IDENT_35 ; } return null ; }
org . junit . Assert . assertEquals ( STRING_0 5 , IDENT_31 )