METHOD_0 ( ) { when ( IDENT_0 . METHOD_1 ( anyString ( ) , anyString ( ) ) ) . thenReturn ( null ) ; org . springframework . security . core . IDENT_1 authentication = mock ( org . springframework . security . core . IDENT_1 . class ) ; when ( authentication . getName ( ) ) . thenReturn ( STRING_0 ) ; when ( authentication . METHOD_2 ( ) ) . thenReturn ( STRING_1 ) ; try { IDENT_2 . METHOD_3 ( authentication ) ; org . junit . Assert . fail ( STRING_2 ) ; } catch ( org . springframework . security . core . IDENT_3 . IDENT_4 e ) { "<AssertPlaceHolder>" ; } } METHOD_3 ( org . springframework . security . core . IDENT_1 ) { java . lang . String IDENT_5 = authentication . getName ( ) ; java . lang . String IDENT_6 = authentication . METHOD_2 ( ) . toString ( ) ; com . IDENT_7 . IDENT_8 . security . IDENT_9 . LOGGER . info ( ( STRING_3 + IDENT_5 ) ) ; com . IDENT_7 . IDENT_8 . model . User IDENT_10 = IDENT_0 . METHOD_1 ( IDENT_5 , IDENT_6 ) ; if ( IDENT_10 != null ) { com . IDENT_7 . IDENT_8 . security . IDENT_9 . LOGGER . info ( ( STRING_4 + IDENT_5 ) ) ; return IDENT_11 . create ( IDENT_10 ) ; } throw new org . springframework . security . core . IDENT_3 . METHOD_4 ( STRING_5 ) ; }
org . junit . Assert . assertNotNull ( e )