METHOD_0 ( ) { final java . lang . String expected = STRING_0 ; java . lang . String data = STRING_1 ; byte [ ] hash = org . IDENT_0 . core . security . IDENT_1 . hash ( data . getBytes ( ) ) ; java . lang . String result = new java . lang . String ( org . IDENT_2 . util . IDENT_3 . IDENT_4 . encode ( hash ) ) ; "<AssertPlaceHolder>" ; } hash ( byte [ ] ) { try { java . security . IDENT_5 IDENT_6 = java . security . IDENT_5 . getInstance ( org . IDENT_0 . core . security . IDENT_1 . IDENT_7 ) ; IDENT_6 . update ( data , 0 , data . length ) ; return IDENT_6 . METHOD_1 ( ) ; } catch ( java . security . IDENT_8 e ) { org . IDENT_0 . core . security . IDENT_1 . logger . error ( STRING_2 , org . IDENT_0 . core . security . IDENT_1 . IDENT_7 , e ) ; return new byte [ 0 ] ; } }
org . junit . Assert . assertEquals ( expected , result )