METHOD_0 ( ) { when ( this . IDENT_0 . METHOD_1 ( ) ) . thenReturn ( res ) ; org . mockito . Mockito . when ( res . next ( ) ) . thenReturn ( true ) . thenReturn ( false ) ; org . springframework . security . IDENT_1 . common . IDENT_2 token = this . IDENT_3 . METHOD_2 ( STRING_0 ) ; "<AssertPlaceHolder>" ; org . mockito . Mockito . verify ( IDENT_0 , org . mockito . Mockito . times ( 1 ) ) . METHOD_3 ( org . mockito . Mockito . METHOD_4 ( ) , org . mockito . Mockito . anyString ( ) ) ; org . mockito . Mockito . verify ( res , org . mockito . Mockito . times ( 4 ) ) . getString ( org . mockito . Mockito . anyString ( ) ) ; org . mockito . Mockito . verify ( res , org . mockito . Mockito . times ( 1 ) ) . METHOD_5 ( org . mockito . Mockito . anyString ( ) ) ; org . mockito . Mockito . verify ( IDENT_0 , org . mockito . Mockito . times ( 1 ) ) . close ( ) ; org . mockito . Mockito . verify ( res , org . mockito . Mockito . times ( 1 ) ) . close ( ) ; org . mockito . Mockito . verify ( conn , org . mockito . Mockito . times ( 1 ) ) . close ( ) ; } METHOD_2 ( java . lang . String ) { org . IDENT_4 . IDENT_4 . IDENT_5 . IDENT_6 . services . IDENT_1 . IDENT_7 conn = null ; org . springframework . security . IDENT_1 . common . IDENT_2 token = null ; try { conn = this . METHOD_6 ( ) ; token = this . METHOD_0 ( IDENT_8 , conn ) ; } catch ( java . lang . Exception t ) { org . IDENT_4 . IDENT_4 . IDENT_5 . IDENT_6 . services . IDENT_1 . IDENT_9 . logger . error ( STRING_1 , IDENT_8 , t ) ; throw new java . lang . RuntimeException ( ( STRING_2 + IDENT_8 ) , t ) ; } finally { this . METHOD_7 ( conn ) ; } return token ; }
org . junit . Assert . assertNotNull ( token )