METHOD_0 ( ) { final long IDENT_0 = 1 ; 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_1 ( org . bonitasoft . engine . IDENT_1 . IDENT_5 . IDENT_6 . METHOD_2 ( org . bonitasoft . engine . IDENT_1 . model . IDENT_2 . class , STRING_0 , IDENT_0 ) ) ) . thenReturn ( IDENT_3 ) ; final org . bonitasoft . engine . IDENT_1 . model . IDENT_2 result = IDENT_7 . METHOD_3 ( IDENT_0 ) ; "<AssertPlaceHolder>" ; } METHOD_3 ( long ) { try { final org . bonitasoft . engine . IDENT_1 . model . IDENT_2 IDENT_3 = IDENT_4 . METHOD_1 ( org . bonitasoft . engine . IDENT_1 . IDENT_5 . IDENT_6 . METHOD_2 ( org . bonitasoft . engine . IDENT_1 . model . IDENT_2 . class , STRING_0 , id ) ) ; if ( IDENT_3 == null ) { throw new org . bonitasoft . engine . IDENT_1 . exception . IDENT_8 . METHOD_4 ( id ) ; } return IDENT_3 ; } catch ( final org . bonitasoft . engine . persistence . IDENT_9 IDENT_10 ) { throw new org . bonitasoft . engine . IDENT_1 . exception . IDENT_8 . METHOD_5 ( IDENT_10 ) ; } }
org . junit . Assert . assertEquals ( IDENT_3 , result )