METHOD_0 ( ) { final java . util . Map < java . lang . String , java . lang . Object > parameters = new java . util . HashMap ( ) ; java . lang . String name = STRING_0 ; java . lang . String version = STRING_1 ; parameters . put ( "name" , name ) ; parameters . put ( STRING_2 , version ) ; org . bonitasoft . engine . persistence . IDENT_0 < java . lang . Long > IDENT_1 = new org . bonitasoft . engine . persistence . METHOD_1 ( STRING_3 , parameters , org . bonitasoft . engine . core . process . IDENT_2 . model . IDENT_3 . class , org . bonitasoft . engine . core . process . IDENT_2 . Long . class ) ; final long IDENT_4 = 9 ; doReturn ( IDENT_4 ) . when ( IDENT_5 ) . METHOD_2 ( IDENT_1 ) ; final long result = IDENT_6 . METHOD_3 ( name , version ) ; "<AssertPlaceHolder>" ; } METHOD_3 ( java . lang . String , java . lang . String ) { final org . bonitasoft . engine . service . IDENT_7 IDENT_8 = METHOD_4 ( ) ; final org . bonitasoft . engine . core . process . IDENT_2 . IDENT_9 IDENT_10 = IDENT_8 . METHOD_5 ( ) ; try { return IDENT_10 . METHOD_3 ( name , version ) ; } catch ( final org . bonitasoft . engine . core . process . IDENT_2 . exception . IDENT_11 e ) { throw new org . bonitasoft . engine . bpm . process . METHOD_6 ( e ) ; } catch ( final org . bonitasoft . engine . persistence . IDENT_12 e ) { throw new org . bonitasoft . engine . exception . METHOD_7 ( e ) ; } }
org . junit . Assert . assertEquals ( IDENT_4 , result )