METHOD_0 ( ) { when ( IDENT_0 . METHOD_1 ( ) ) . thenReturn ( STRING_0 ) ; final org . kie . workbench . common . IDENT_1 . IDENT_2 . model . IDENT_3 model = new org . kie . workbench . common . IDENT_1 . IDENT_2 . model . METHOD_2 ( ) ; model . METHOD_3 ( IDENT_4 ) ; model . METHOD_4 ( IDENT_5 ) ; model . METHOD_5 ( IDENT_0 ) ; model . METHOD_6 ( IDENT_6 ) ; model . METHOD_7 ( IDENT_7 ) ; model . METHOD_8 ( IDENT_8 ) ; model . METHOD_9 ( IDENT_9 ) ; model . METHOD_10 ( IDENT_10 ) ; model . METHOD_11 ( IDENT_11 ) ; model . METHOD_12 ( IDENT_12 ) ; model . METHOD_13 ( IDENT_13 ) ; final org . IDENT_14 . common . services . project . model . IDENT_15 IDENT_16 = new org . IDENT_14 . common . services . project . model . METHOD_14 ( STRING_1 , STRING_2 , org . IDENT_14 . common . services . project . model . IDENT_17 . IDENT_18 ) ; IDENT_12 . METHOD_15 ( ) . add ( new org . IDENT_14 . common . services . project . model . IDENT_19 . METHOD_16 ( true , IDENT_16 ) ) ; when ( IDENT_20 . METHOD_17 ( eq ( IDENT_21 ) , eq ( module ) , eq ( IDENT_16 ) ) ) . thenReturn ( new java . util . HashSet < org . IDENT_14 . common . services . project . model . METHOD_14 > ( ) { { add ( IDENT_16 ) ; } } ) ; final java . lang . String IDENT_22 = STRING_3 ; final org . IDENT_14 . common . services . project . model . IDENT_23 IDENT_24 = new org . IDENT_14 . common . services . project . model . METHOD_18 ( ) ; doReturn ( IDENT_24 ) . when ( IDENT_25 ) . METHOD_19 ( IDENT_0 ) ; try { final org . IDENT_14 . common . services . project . model . METHOD_18 project = service . save ( IDENT_0 , model , IDENT_22 , IDENT_26 . IDENT_27 ) ; "<AssertPlaceHolder>" ; } catch ( org . IDENT_14 . common . services . project . service . IDENT_28 e ) { org . junit . Assert . fail ( ( STRING_4 + ( e . getMessage ( ) ) ) ) ; } verify ( IDENT_29 , times ( 1 ) ) . save ( eq ( IDENT_0 ) , eq ( model . METHOD_20 ( ) ) , eq ( IDENT_5 ) , eq ( IDENT_22 ) ) ; verify ( IDENT_30 , times ( 1 ) ) . save ( eq ( IDENT_8 ) , eq ( IDENT_6 ) , eq ( IDENT_7 ) , eq ( IDENT_22 ) ) ; verify ( IDENT_31 , times ( 1 ) ) . save ( eq ( IDENT_11 ) , eq ( IDENT_9 ) , eq ( IDENT_10 ) , eq ( IDENT_22 ) ) ; verify ( IDENT_32 , times ( 1 ) ) . save ( eq ( IDENT_13 ) , eq ( IDENT_12 ) , eq ( IDENT_22 ) ) ; } save ( org . IDENT_33 . backend . IDENT_34 . Path , org . kie . workbench . common . IDENT_35 . IDENT_36 . model . IDENT_37 , org . IDENT_14 . common . services . shared . metadata . model . IDENT_38 , java . lang . String ) { IDENT_39 . write ( org . IDENT_33 . backend . server . util . IDENT_40 . convert ( path ) , IDENT_41 . serialize ( content . METHOD_21 ( ) ) , IDENT_42 . METHOD_22 ( path , metadata ) , IDENT_43 . METHOD_23 ( IDENT_22 ) ) ; return path ; }
org . junit . Assert . assertEquals ( IDENT_24 , project )