METHOD_0 ( ) { org . kaazing . IDENT_0 . transport . IDENT_1 . IDENT_2 IDENT_3 = new org . kaazing . IDENT_0 . transport . IDENT_1 . METHOD_1 ( ) ; IDENT_3 . METHOD_2 ( new org . apache . IDENT_4 . core . service . METHOD_3 ( ) { @ org . kaazing . IDENT_0 . transport . IDENT_1 . Override public void METHOD_4 ( org . apache . IDENT_4 . core . session . IDENT_5 session , java . lang . Object message ) throws org . kaazing . IDENT_0 . transport . IDENT_1 . Exception { org . apache . IDENT_4 . core . buffer . IDENT_6 buf = ( ( org . apache . IDENT_4 . core . buffer . IDENT_6 ) ( message ) ) ; session . write ( buf . METHOD_5 ( ) ) ; } } ) ; org . kaazing . IDENT_0 . transport . IDENT_7 IDENT_8 = new org . kaazing . IDENT_0 . transport . METHOD_6 ( STRING_0 ) ; IDENT_3 . METHOD_7 ( IDENT_8 ) ; final java . util . concurrent . atomic . IDENT_9 < org . apache . IDENT_4 . core . buffer . IDENT_6 > IDENT_10 = new java . util . concurrent . atomic . METHOD_8 ( ) ; org . kaazing . IDENT_0 . transport . IDENT_1 . IDENT_11 IDENT_12 = new org . kaazing . IDENT_0 . transport . IDENT_1 . METHOD_9 ( ) ; IDENT_12 . METHOD_10 ( IDENT_3 ) ; IDENT_12 . METHOD_2 ( new org . apache . IDENT_4 . core . service . METHOD_3 ( ) { @ org . kaazing . IDENT_0 . transport . IDENT_1 . Override public void METHOD_4 ( org . apache . IDENT_4 . core . session . IDENT_5 session , java . lang . Object message ) throws org . kaazing . IDENT_0 . transport . IDENT_1 . Exception { org . apache . IDENT_4 . core . buffer . IDENT_6 buf = ( ( org . apache . IDENT_4 . core . buffer . IDENT_6 ) ( message ) ) ; IDENT_10 . set ( buf . METHOD_5 ( ) ) ; } } ) ; org . kaazing . IDENT_0 . transport . METHOD_6 IDENT_13 = new org . kaazing . IDENT_0 . transport . METHOD_6 ( STRING_0 ) ; org . apache . IDENT_4 . core . future . IDENT_14 IDENT_15 = IDENT_12 . connect ( IDENT_13 ) ; IDENT_15 . METHOD_11 ( ) ; org . kaazing . IDENT_4 . core . session . IDENT_16 session = ( ( org . kaazing . IDENT_4 . core . session . IDENT_16 ) ( IDENT_15 . METHOD_12 ( ) ) ) ; org . kaazing . IDENT_4 . core . buffer . IDENT_17 < ? > IDENT_18 = session . METHOD_13 ( ) ; org . apache . IDENT_4 . core . future . IDENT_19 IDENT_20 = session . write ( IDENT_18 . METHOD_14 ( java . nio . ByteBuffer . METHOD_14 ( org . kaazing . IDENT_0 . transport . IDENT_1 . IDENT_21 . IDENT_22 ) ) ) ; IDENT_20 . METHOD_11 ( ) ; "<AssertPlaceHolder>" ; } METHOD_14 ( org . kaazing . IDENT_4 . netty . buffer . IDENT_23 ) { this . buffer = buffer . buffer ; order = buffer . order ; IDENT_24 = buffer . IDENT_24 ; METHOD_15 ( buffer . METHOD_16 ( ) , buffer . METHOD_17 ( ) ) ; return this ; }
org . junit . Assert . assertEquals ( IDENT_18 . METHOD_14 ( java . nio . ByteBuffer . METHOD_14 ( org . kaazing . IDENT_0 . transport . IDENT_1 . IDENT_21 . IDENT_22 ) ) , IDENT_10 . get ( ) )