METHOD_0 ( ) { final org . bonitasoft . engine . core . IDENT_0 . model . IDENT_1 IDENT_2 = mock ( org . bonitasoft . engine . core . IDENT_0 . model . IDENT_1 . class ) ; final java . lang . String name = "name" ; doReturn ( IDENT_2 ) . when ( IDENT_3 ) . METHOD_1 ( org . bonitasoft . engine . core . IDENT_0 . persistence . IDENT_4 . METHOD_2 ( name ) ) ; final org . bonitasoft . engine . core . IDENT_0 . model . IDENT_1 IDENT_5 = IDENT_6 . METHOD_0 ( name ) ; "<AssertPlaceHolder>" ; } METHOD_0 ( java . lang . String ) { final org . bonitasoft . engine . persistence . IDENT_7 < org . bonitasoft . engine . core . IDENT_0 . model . IDENT_1 > IDENT_8 = org . bonitasoft . engine . core . IDENT_0 . persistence . IDENT_4 . METHOD_2 ( name ) ; try { final org . bonitasoft . engine . core . IDENT_0 . model . IDENT_1 IDENT_0 = IDENT_3 . METHOD_1 ( IDENT_8 ) ; if ( IDENT_0 == null ) { throw new org . bonitasoft . engine . core . IDENT_0 . exception . METHOD_3 ( ( STRING_0 + name ) ) ; } return IDENT_0 ; } catch ( final org . bonitasoft . engine . persistence . IDENT_9 IDENT_10 ) { throw new org . bonitasoft . engine . core . IDENT_0 . exception . METHOD_3 ( IDENT_10 ) ; } }
org . junit . Assert . assertEquals ( IDENT_2 , IDENT_5 )