METHOD_0 ( ) { java . util . Calendar from = java . util . Calendar . getInstance ( ) ; from . METHOD_1 ( ) ; from . set ( INT_0 , 0 , 1 , 0 , 0 , 0 ) ; java . util . Calendar to = java . util . Calendar . getInstance ( ) ; to . METHOD_1 ( ) ; to . set ( INT_1 , 0 , 1 , 0 , 0 , 0 ) ; org . IDENT_0 . security . IDENT_1 . IDENT_2 template = new org . IDENT_0 . security . IDENT_1 . METHOD_2 ( this . user , STRING_0 , STRING_1 , null , this . doc , null ) ; when ( this . store . METHOD_3 ( template , from , to , 20 , 10 ) ) . thenReturn ( this . events ) ; when ( this . auth . METHOD_4 ( this . user , IDENT_3 . IDENT_4 , this . IDENT_5 ) ) . thenReturn ( true ) ; java . util . List < org . IDENT_0 . security . IDENT_1 . METHOD_2 > result = this . IDENT_6 . METHOD_3 ( 20 , 10 , STRING_1 , STRING_2 , STRING_0 , STRING_3 , STRING_4 , STRING_5 ) ; org . mockito . Mockito . verify ( this . store ) . METHOD_3 ( template , from , to , 20 , 10 ) ; "<AssertPlaceHolder>" ; } METHOD_3 ( org . IDENT_0 . security . IDENT_1 . METHOD_2 , java . util . Calendar , java . util . Calendar , int , int ) { try { org . hibernate . IDENT_7 session = this . IDENT_8 . METHOD_5 ( ) . METHOD_6 ( ) ; org . hibernate . IDENT_9 c = session . METHOD_7 ( org . IDENT_0 . security . IDENT_1 . METHOD_2 . class ) ; if ( IDENT_10 != null ) { c . add ( org . hibernate . IDENT_11 . IDENT_12 . create ( IDENT_10 ) ) ; } METHOD_8 ( c , IDENT_13 , IDENT_14 ) ; c . METHOD_9 ( org . hibernate . IDENT_11 . IDENT_15 . METHOD_10 ( org . IDENT_0 . security . IDENT_1 . internal . IDENT_16 . IDENT_17 ) ) ; if ( start > 0 ) { c . METHOD_11 ( start ) ; } if ( IDENT_18 > 0 ) { c . METHOD_12 ( IDENT_18 ) ; } c . METHOD_13 ( true ) ; @ org . IDENT_0 . security . IDENT_1 . internal . METHOD_14 ( STRING_6 ) java . util . List < org . IDENT_0 . security . IDENT_1 . METHOD_2 > IDENT_19 = c . list ( ) ; return IDENT_19 ; } catch ( org . hibernate . IDENT_20 ex ) { this . logger . error ( STRING_7 , ex . getMessage ( ) , ex ) ; } return java . util . Collections . emptyList ( ) ; }
org . junit . Assert . assertSame ( this . events , result )