METHOD_0 ( ) { final org . IDENT_0 . IDENT_1 . IDENT_2 . IDENT_3 repository = mock ( org . IDENT_0 . IDENT_1 . IDENT_2 . IDENT_3 . class ) ; final org . IDENT_4 . backend . IDENT_5 . Path IDENT_6 = mock ( org . IDENT_4 . backend . IDENT_5 . Path . class ) ; doReturn ( java . util . Optional . of ( new org . IDENT_0 . IDENT_1 . IDENT_2 . METHOD_1 ( STRING_0 , IDENT_6 ) ) ) . when ( repository ) . METHOD_2 ( ) ; final org . IDENT_0 . common . services . project . model . IDENT_7 IDENT_8 = new org . IDENT_0 . common . services . project . model . METHOD_3 ( ) ; final org . kie . workbench . common . services . shared . project . IDENT_9 expected = new org . kie . workbench . common . services . shared . project . METHOD_4 ( ) ; when ( IDENT_10 . save ( IDENT_6 , IDENT_8 ) ) . thenReturn ( expected ) ; final org . IDENT_0 . common . services . project . model . IDENT_11 project = IDENT_12 . METHOD_5 ( IDENT_6 , IDENT_8 ) ; "<AssertPlaceHolder>" ; } METHOD_5 ( org . IDENT_4 . backend . IDENT_5 . Path , org . IDENT_0 . common . services . project . model . METHOD_3 ) { return METHOD_5 ( IDENT_13 , IDENT_8 , IDENT_14 . IDENT_15 ) ; }
org . junit . Assert . assertEquals ( expected , project )