METHOD_0 ( ) { org . IDENT_0 . security . IDENT_1 . IDENT_2 template = new org . IDENT_0 . security . IDENT_1 . METHOD_1 ( null , null , null , null , null , null ) ; when ( this . store . METHOD_2 ( template , null , null ) ) . thenReturn ( INT_0 ) ; when ( this . auth . METHOD_3 ( this . user , IDENT_3 . IDENT_4 , this . IDENT_5 ) ) . thenReturn ( true ) ; long result = this . IDENT_6 . METHOD_2 ( " " , " " , " " , " " , " " , " " ) ; org . mockito . Mockito . verify ( this . store ) . METHOD_2 ( template , null , null ) ; "<AssertPlaceHolder>" ; } METHOD_2 ( org . IDENT_0 . security . IDENT_1 . METHOD_1 , java . util . Calendar , java . util . Calendar ) { try { org . hibernate . IDENT_7 session = this . IDENT_8 . METHOD_4 ( ) . METHOD_5 ( ) ; org . hibernate . IDENT_9 c = session . METHOD_6 ( org . IDENT_0 . security . IDENT_1 . METHOD_1 . class ) ; if ( IDENT_10 != null ) { c . add ( org . hibernate . IDENT_11 . IDENT_12 . create ( IDENT_10 ) ) ; } METHOD_7 ( c , IDENT_13 , IDENT_14 ) ; c . METHOD_8 ( org . hibernate . IDENT_11 . IDENT_15 . METHOD_9 ( ) ) ; @ org . IDENT_0 . security . IDENT_1 . internal . METHOD_10 ( STRING_0 ) java . util . List IDENT_16 = c . list ( ) ; if ( ( IDENT_16 != null ) && ( ! ( IDENT_16 . isEmpty ( ) ) ) ) { return ( ( long ) ( IDENT_16 . get ( 0 ) ) ) ; } return 0 ; } catch ( org . hibernate . IDENT_17 ex ) { this . logger . error ( STRING_1 , ex . getMessage ( ) , ex ) ; return - 1 ; } }
org . junit . Assert . assertEquals ( INT_0 , result )