METHOD_0 ( ) { org . kaazing . IDENT_0 . filter . codec . IDENT_1 session = new org . kaazing . IDENT_0 . filter . codec . METHOD_1 ( ) ; org . kaazing . IDENT_0 . core . buffer . IDENT_2 < ? > IDENT_3 = session . METHOD_2 ( ) ; org . apache . IDENT_0 . filter . codec . IDENT_4 IDENT_5 = new org . kaazing . IDENT_6 . transport . http . IDENT_7 . filter . METHOD_3 ( IDENT_3 ) ; org . apache . IDENT_0 . filter . codec . IDENT_8 IDENT_9 = session . METHOD_4 ( ) ; org . kaazing . IDENT_6 . transport . http . IDENT_7 . filter . IDENT_10 IDENT_11 = new org . kaazing . IDENT_6 . transport . http . IDENT_7 . filter . METHOD_5 ( IDENT_3 ) ; byte [ ] IDENT_12 = STRING_0 . getBytes ( ) ; org . kaazing . IDENT_0 . core . buffer . IDENT_13 data = IDENT_11 . METHOD_6 ( IDENT_11 . METHOD_7 ( IDENT_12 . length , org . kaazing . IDENT_6 . transport . http . IDENT_7 . filter . IDENT_14 ) ) ; int pos = data . position ( ) ; data . put ( IDENT_12 ) ; data . position ( pos ) ; org . kaazing . IDENT_6 . transport . http . IDENT_7 . IDENT_15 IDENT_16 = new org . kaazing . IDENT_6 . transport . http . IDENT_7 . METHOD_8 ( data , false , false , true ) ; IDENT_5 . encode ( session , IDENT_16 , IDENT_9 ) ; IDENT_9 . METHOD_9 ( ) ; org . kaazing . IDENT_0 . core . buffer . IDENT_13 buf = ( ( org . kaazing . IDENT_0 . core . buffer . IDENT_13 ) ( session . METHOD_10 ( ) . METHOD_11 ( ) ) ) ; org . kaazing . IDENT_0 . core . buffer . IDENT_13 expected = IDENT_3 . METHOD_6 ( IDENT_3 . METHOD_7 ( INT_0 ) ) ; expected . put ( new byte [ ] { 0 , ( ( byte ) ( 12 ) ) , 0 , ( ( byte ) ( OP_0 12 ) ) , ( ( byte ) ( OP_0 0 ) ) } ) ; expected . put ( STRING_0 . getBytes ( ) ) ; expected . METHOD_12 ( ) ; "<AssertPlaceHolder>" ; } METHOD_12 ( ) { buf . METHOD_12 ( ) ; return this ; }
org . junit . Assert . assertEquals ( expected , buf )