METHOD_0 ( ) { when ( IDENT_0 . METHOD_0 ( org . mockito . Mockito . any ( org . springframework . security . IDENT_1 . common . IDENT_2 . class ) ) ) . thenReturn ( org . mockito . Mockito . any ( org . springframework . security . IDENT_1 . provider . IDENT_3 . class ) ) ; org . springframework . security . IDENT_1 . common . IDENT_2 IDENT_4 = new org . springframework . security . IDENT_1 . common . METHOD_1 ( "value" ) ; org . springframework . security . IDENT_1 . provider . IDENT_3 auth = this . IDENT_5 . METHOD_0 ( IDENT_4 ) ; "<AssertPlaceHolder>" ; org . mockito . Mockito . verify ( IDENT_0 , org . mockito . Mockito . times ( 1 ) ) . METHOD_0 ( IDENT_4 ) ; } METHOD_0 ( org . springframework . security . IDENT_1 . common . IDENT_2 ) { org . springframework . security . IDENT_1 . provider . IDENT_3 authentication = null ; org . IDENT_6 . IDENT_6 . IDENT_7 . IDENT_8 . services . IDENT_1 . IDENT_9 conn = null ; org . IDENT_6 . IDENT_6 . IDENT_7 . IDENT_8 . services . IDENT_1 . IDENT_10 IDENT_11 = null ; org . IDENT_6 . IDENT_6 . IDENT_7 . IDENT_8 . services . IDENT_1 . ResultSet res = null ; try { conn = this . METHOD_2 ( ) ; IDENT_11 = conn . METHOD_3 ( org . IDENT_6 . IDENT_6 . IDENT_7 . IDENT_8 . services . IDENT_1 . IDENT_12 . IDENT_13 ) ; IDENT_11 . METHOD_4 ( 1 , IDENT_4 . getValue ( ) ) ; res = IDENT_11 . METHOD_5 ( ) ; if ( res . next ( ) ) { java . lang . String IDENT_14 = res . getString ( STRING_0 ) ; org . springframework . security . authentication . IDENT_15 auth = new org . springframework . security . authentication . METHOD_6 ( IDENT_14 , "" ) ; java . lang . String IDENT_16 = res . getString ( STRING_1 ) ; java . util . Map < java . lang . String , java . lang . String > IDENT_17 = new java . util . HashMap ( ) ; IDENT_17 . put ( IDENT_18 . IDENT_19 , res . getString ( STRING_2 ) ) ; org . springframework . security . IDENT_1 . provider . IDENT_20 IDENT_21 = new org . springframework . security . IDENT_1 . provider . METHOD_7 ( IDENT_17 , IDENT_16 , null , true , null , null , null , null , null ) ; authentication = new org . springframework . security . IDENT_1 . provider . METHOD_8 ( IDENT_21 , auth ) ; } } catch ( java . lang . Exception t ) { org . IDENT_6 . IDENT_6 . IDENT_7 . IDENT_8 . services . IDENT_1 . IDENT_12 . logger . error ( STRING_3 , t ) ; throw new java . lang . RuntimeException ( STRING_3 , t ) ; } finally { this . METHOD_9 ( res , IDENT_11 , conn ) ; } return authentication ; }
org . junit . Assert . assertNull ( auth )