METHOD_0 ( ) { org . baeldung . IDENT_0 . persistence . model . User user = new org . baeldung . IDENT_0 . persistence . model . User ( ) ; user . METHOD_1 ( org . baeldung . web . IDENT_1 . IDENT_2 ) ; user . METHOD_2 ( IDENT_3 . encode ( org . baeldung . web . IDENT_1 . IDENT_4 ) ) ; IDENT_5 . save ( user ) ; org . springframework . security . authentication . IDENT_6 auth = new org . springframework . security . authentication . METHOD_3 ( org . baeldung . web . IDENT_1 . IDENT_2 , org . baeldung . web . IDENT_1 . IDENT_4 ) ; org . springframework . security . core . IDENT_7 authentication = IDENT_8 . METHOD_4 ( auth ) ; "<AssertPlaceHolder>" ; } getName ( ) { return name ; }
org . junit . Assert . assertEquals ( authentication . getName ( ) , org . baeldung . web . IDENT_1 . IDENT_2 )