METHOD_0 ( ) { final org . bonitasoft . engine . IDENT_0 . model . IDENT_1 IDENT_2 = mock ( org . bonitasoft . engine . IDENT_0 . model . IDENT_1 . class ) ; when ( IDENT_3 . METHOD_1 ( org . mockito . Matchers . < org . bonitasoft . engine . persistence . IDENT_4 < org . bonitasoft . engine . IDENT_0 . model . IDENT_1 > > any ( ) ) ) . thenReturn ( java . util . Collections . singletonList ( IDENT_2 ) ) ; final org . bonitasoft . engine . IDENT_0 . model . IDENT_1 result = IDENT_5 . METHOD_0 ( 0 , 10 ) . get ( 0 ) ; "<AssertPlaceHolder>" ; verify ( IDENT_3 ) . METHOD_1 ( org . mockito . Matchers . < org . bonitasoft . engine . persistence . IDENT_4 < org . bonitasoft . engine . IDENT_0 . model . IDENT_1 > > any ( ) ) ; } get ( long ) { org . bonitasoft . engine . core . IDENT_6 . IDENT_7 IDENT_8 = IDENT_9 . METHOD_2 ( new org . bonitasoft . engine . persistence . METHOD_3 ( org . bonitasoft . engine . core . IDENT_6 . IDENT_7 . class , IDENT_10 ) ) ; if ( IDENT_8 == null ) { throw new org . bonitasoft . engine . commons . exceptions . METHOD_4 ( IDENT_10 ) ; } return IDENT_8 ; }
org . junit . Assert . assertEquals ( IDENT_2 , result )