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