METHOD_0 ( ) { final org . apache . IDENT_0 . core . service . IDENT_1 handler = context . mock ( org . apache . IDENT_0 . core . service . IDENT_1 . class ) ; context . METHOD_1 ( new org . IDENT_2 . METHOD_2 ( ) { { METHOD_3 ( handler ) . METHOD_4 ( with ( METHOD_5 ( org . kaazing . IDENT_0 . core . session . IDENT_3 . class ) ) ) ; METHOD_3 ( handler ) . METHOD_6 ( with ( METHOD_5 ( org . kaazing . IDENT_0 . core . session . IDENT_3 . class ) ) ) ; METHOD_3 ( handler ) . METHOD_7 ( with ( METHOD_5 ( org . kaazing . IDENT_0 . core . session . IDENT_3 . class ) ) , with ( equal ( org . apache . IDENT_0 . transport . IDENT_4 . nio . IDENT_5 . METHOD_8 ( METHOD_8 ( STRING_0 . getBytes ( org . apache . IDENT_0 . transport . IDENT_4 . nio . UTF_8 ) ) ) ) ) ) ; METHOD_9 ( METHOD_10 ( STRING_1 ) ) ; METHOD_3 ( handler ) . METHOD_11 ( with ( METHOD_5 ( org . kaazing . IDENT_0 . core . session . IDENT_3 . class ) ) ) ; } } ) ; java . net . IDENT_6 IDENT_7 = new java . net . METHOD_12 ( STRING_2 , METHOD_13 ( INT_0 , 100 ) ) ; java . lang . System . out . println ( java . lang . String . format ( STRING_3 , IDENT_7 ) ) ; IDENT_8 . METHOD_14 ( handler ) ; IDENT_8 . METHOD_15 ( IDENT_7 ) ; java . net . IDENT_9 IDENT_4 = new java . net . METHOD_16 ( ) ; IDENT_4 . connect ( IDENT_7 ) ; IDENT_4 . METHOD_17 ( ) . write ( STRING_0 . getBytes ( org . apache . IDENT_0 . transport . IDENT_4 . nio . UTF_8 ) ) ; int IDENT_10 = IDENT_4 . METHOD_18 ( ) . read ( ) ; "<AssertPlaceHolder>" ; IDENT_8 . METHOD_19 ( ) ; } read ( ) { MOD_0 ( IDENT_11 ) { if ( ! ( METHOD_20 ( ) ) ) { return - 1 ; } return ( buf . get ( ) ) & 255 ; } }
org . junit . Assert . assertEquals ( ( - 1 ) , IDENT_10 )