encode ( ) { byte [ ] input = STRING_0 . getBytes ( ) ; byte [ ] expected = new byte [ ] { ( ( byte ) ( INT_0 ) ) , ( ( byte ) ( 4 ) ) , ( ( byte ) ( INT_1 ) ) , ( ( byte ) ( INT_2 ) ) , ( ( byte ) ( INT_3 ) ) , ( ( byte ) ( 100 ) ) } ; org . kaazing . IDENT_0 . transport . ws . IDENT_1 . filter . IDENT_2 IDENT_3 = new org . kaazing . IDENT_0 . transport . ws . IDENT_1 . filter . METHOD_0 ( org . kaazing . IDENT_4 . core . buffer . IDENT_5 . IDENT_6 ) ; int IDENT_7 = IDENT_8 ; org . kaazing . IDENT_0 . transport . ws . IDENT_9 message = new org . kaazing . IDENT_0 . transport . ws . METHOD_1 ( IDENT_3 . METHOD_2 ( java . nio . ByteBuffer . METHOD_2 ( input ) , IDENT_7 ) ) ; org . kaazing . IDENT_4 . core . buffer . IDENT_10 out = org . kaazing . IDENT_0 . transport . ws . IDENT_1 . filter . IDENT_11 . METHOD_3 ( IDENT_3 , IDENT_7 , message ) ; "<AssertPlaceHolder>" ; } METHOD_2 ( java . nio . ByteBuffer , int ) { boolean shared = ( IDENT_7 & ( org . kaazing . IDENT_4 . core . buffer . IDENT_10 . IDENT_12 ) ) != ( org . kaazing . IDENT_4 . core . buffer . IDENT_10 . IDENT_13 ) ; return shared ? new org . kaazing . IDENT_4 . netty . IDENT_14 . METHOD_4 ( IDENT_15 ) : new org . kaazing . IDENT_4 . netty . IDENT_14 . METHOD_5 ( IDENT_15 ) ; }
org . junit . Assert . assertEquals ( out , IDENT_3 . METHOD_2 ( java . nio . ByteBuffer . METHOD_2 ( expected ) , IDENT_7 ) )