METHOD_0 ( ) { final org . xwiki . IDENT_0 . User IDENT_1 = mock ( org . xwiki . IDENT_0 . User . class ) ; final org . xwiki . IDENT_0 . IDENT_2 IDENT_3 = mock ( org . xwiki . IDENT_0 . IDENT_2 . class , STRING_0 ) ; final org . xwiki . IDENT_0 . IDENT_2 IDENT_4 = mock ( org . xwiki . IDENT_0 . IDENT_2 . class , STRING_1 ) ; final java . util . Map < java . lang . String , org . xwiki . IDENT_0 . IDENT_2 > IDENT_5 = new java . util . METHOD_1 ( ) ; IDENT_5 . put ( STRING_0 , IDENT_3 ) ; IDENT_5 . put ( STRING_1 , IDENT_4 ) ; when ( this . IDENT_6 . < org . xwiki . IDENT_0 . IDENT_2 > METHOD_2 ( org . xwiki . IDENT_0 . IDENT_2 . class ) ) . thenReturn ( IDENT_5 ) ; when ( this . IDENT_6 . getInstance ( org . xwiki . IDENT_0 . IDENT_2 . class , STRING_1 ) ) . thenReturn ( IDENT_4 ) ; when ( IDENT_3 . METHOD_3 ( this . IDENT_7 ) ) . thenReturn ( null ) ; when ( IDENT_4 . METHOD_3 ( this . IDENT_7 ) ) . thenReturn ( null ) ; when ( this . configuration . getProperty ( STRING_2 , STRING_1 ) ) . thenReturn ( STRING_1 ) ; when ( IDENT_4 . METHOD_3 ( this . IDENT_7 , true ) ) . thenReturn ( IDENT_1 ) ; org . xwiki . IDENT_0 . User IDENT_8 = this . IDENT_9 . METHOD_3 ( this . IDENT_7 , true ) ; "<AssertPlaceHolder>" ; } METHOD_3 ( java . lang . String , boolean ) { if ( org . apache . commons . lang3 . StringUtils . METHOD_4 ( IDENT_10 ) ) { return new org . xwiki . IDENT_0 . internal . METHOD_5 ( null , this . serializer ) ; } org . xwiki . IDENT_0 . User result = null ; try { java . util . Map < java . lang . String , org . xwiki . IDENT_0 . IDENT_2 > IDENT_5 = this . IDENT_11 . METHOD_2 ( org . xwiki . IDENT_0 . IDENT_2 . class ) ; IDENT_5 . remove ( STRING_3 ) ; for ( org . xwiki . IDENT_0 . IDENT_2 manager : IDENT_5 . values ( ) ) { result = manager . METHOD_3 ( IDENT_10 ) ; if ( result != null ) { return result ; } } } catch ( org . xwiki . component . manager . IDENT_12 ex ) { } if ( IDENT_13 ) { try { org . xwiki . IDENT_0 . IDENT_2 IDENT_14 = this . IDENT_11 . getInstance ( org . xwiki . IDENT_0 . IDENT_2 . class , this . configuration . getProperty ( STRING_2 , STRING_1 ) ) ; return IDENT_14 . METHOD_3 ( IDENT_10 , true ) ; } catch ( org . xwiki . component . manager . IDENT_12 ex ) { } } return new org . xwiki . IDENT_0 . internal . METHOD_5 ( METHOD_6 ( IDENT_10 ) , this . serializer ) ; }
org . junit . Assert . assertSame ( IDENT_1 , IDENT_8 )