METHOD_0 ( ) { final org . IDENT_0 . common . services . project . model . IDENT_1 IDENT_2 = mock ( org . IDENT_0 . common . services . project . model . IDENT_1 . class ) ; final org . IDENT_0 . common . services . project . model . IDENT_1 IDENT_3 = mock ( org . IDENT_0 . common . services . project . model . IDENT_1 . class ) ; final org . IDENT_0 . IDENT_4 . IDENT_5 . IDENT_6 repository = mock ( org . IDENT_0 . IDENT_4 . IDENT_5 . IDENT_6 . class ) ; final java . io . File test = java . io . File . METHOD_1 ( "test" , java . lang . Long . toString ( java . lang . System . METHOD_2 ( ) ) ) ; final org . IDENT_7 . backend . IDENT_8 . Path IDENT_9 = IDENT_10 . convert ( fs . getPath ( test . METHOD_3 ( ) ) ) ; org . IDENT_7 . java . nio . file . IDENT_11 IDENT_12 = null ; when ( repository . METHOD_4 ( ) ) . thenReturn ( java . util . Optional . of ( new org . IDENT_0 . IDENT_4 . IDENT_5 . METHOD_5 ( STRING_0 , IDENT_9 ) ) ) ; when ( IDENT_3 . getName ( ) ) . thenReturn ( STRING_1 ) ; final org . IDENT_7 . java . nio . file . Path IDENT_13 = IDENT_10 . convert ( IDENT_9 ) . resolve ( STRING_2 ) ; final org . IDENT_7 . backend . IDENT_8 . Path IDENT_14 = IDENT_10 . convert ( IDENT_13 ) ; final org . IDENT_7 . java . nio . file . Path IDENT_15 = IDENT_10 . convert ( IDENT_9 ) . resolve ( STRING_1 ) . resolve ( STRING_2 ) ; when ( IDENT_16 . load ( IDENT_14 ) ) . thenReturn ( IDENT_2 ) ; when ( IDENT_17 . exists ( any ( ) ) ) . thenReturn ( true ) ; try { IDENT_18 . save ( org . IDENT_7 . backend . server . util . IDENT_19 . convert ( IDENT_15 ) , IDENT_3 ) ; } catch ( org . IDENT_7 . java . nio . file . IDENT_11 e ) { IDENT_12 = e ; } "<AssertPlaceHolder>" ; verify ( IDENT_16 , METHOD_6 ( ) ) . save ( eq ( IDENT_14 ) , any ( org . IDENT_0 . common . services . project . model . IDENT_1 . class ) , any ( org . IDENT_0 . common . services . shared . metadata . model . IDENT_20 . class ) , any ( java . lang . String . class ) ) ; } convert ( org . kie . workbench . common . IDENT_21 . server . management . model . IDENT_22 ) { switch ( IDENT_23 ) { case IDENT_24 : return org . kie . workbench . common . IDENT_21 . server . management . client . util . IDENT_25 . IDENT_24 ; case IDENT_26 : return org . kie . workbench . common . IDENT_21 . server . management . client . util . IDENT_25 . IDENT_26 ; case IDENT_27 : return org . kie . workbench . common . IDENT_21 . server . management . client . util . IDENT_25 . IDENT_27 ; case IDENT_28 : return org . kie . workbench . common . IDENT_21 . server . management . client . util . IDENT_25 . IDENT_28 ; } throw new java . lang . RuntimeException ( STRING_3 ) ; }
org . junit . Assert . assertNotNull ( IDENT_12 )