METHOD_0 ( ) { final java . lang . String user = STRING_0 ; org . IDENT_0 . IDENT_1 . IDENT_2 IDENT_3 = mock ( org . IDENT_0 . IDENT_1 . IDENT_2 . class ) ; when ( IDENT_3 . METHOD_1 ( ) ) . thenReturn ( new org . jboss . IDENT_4 . security . shared . api . IDENT_5 . METHOD_2 ( user ) ) ; doReturn ( IDENT_3 ) . when ( this . resolver ) . METHOD_3 ( ) ; java . lang . String name = this . resolver . METHOD_4 ( ) ; "<AssertPlaceHolder>" ; } METHOD_4 ( ) { try { org . IDENT_0 . IDENT_1 . IDENT_2 IDENT_3 = METHOD_3 ( ) ; return IDENT_3 . METHOD_1 ( ) . METHOD_5 ( ) ; } catch ( java . lang . Exception e ) { java . lang . String name = org . IDENT_0 . IDENT_6 . IDENT_7 . get ( ) ; if ( ( name == null ) || ( name . isEmpty ( ) ) ) { return org . IDENT_0 . backend . server . IDENT_8 . IDENT_6 . IDENT_9 . IDENT_10 ; } else { return name ; } } }
org . junit . Assert . assertEquals ( user , name )