METHOD_0 ( ) { when ( IDENT_0 . serialize ( any ( ) ) ) . METHOD_1 ( this :: IDENT_1 ) ; org . kie . workbench . common . IDENT_2 . model . IDENT_3 IDENT_4 = mock ( org . kie . workbench . common . IDENT_2 . model . IDENT_3 . class ) ; org . IDENT_5 . backend . IDENT_6 . Path IDENT_7 = IDENT_8 . METHOD_2 ( path , org . kie . workbench . common . IDENT_2 . IDENT_9 . backend . service . impl . IDENT_10 . IDENT_11 , IDENT_4 ) ; "<AssertPlaceHolder>" ; } METHOD_2 ( org . IDENT_5 . backend . IDENT_6 . Path , java . lang . String , org . kie . workbench . common . IDENT_2 . model . IDENT_3 ) { org . IDENT_5 . java . nio . file . Path IDENT_12 = org . IDENT_5 . backend . server . util . IDENT_13 . convert ( path ) . resolve ( IDENT_14 ) ; try { if ( IDENT_15 . exists ( IDENT_12 ) ) { throw new org . IDENT_5 . java . nio . file . METHOD_3 ( IDENT_12 . toString ( ) ) ; } org . kie . workbench . common . IDENT_2 . model . IDENT_16 IDENT_17 = new org . kie . workbench . common . IDENT_2 . model . METHOD_4 ( IDENT_4 ) ; IDENT_17 . setId ( org . kie . workbench . common . IDENT_2 . services . backend . util . IDENT_18 . METHOD_5 ( ) ) ; IDENT_17 . setName ( IDENT_14 . substring ( 0 , IDENT_14 . METHOD_6 ( STRING_0 ) ) ) ; IDENT_17 . METHOD_7 ( new org . IDENT_5 . ext . layout . IDENT_9 . api . IDENT_9 . METHOD_8 ( ) ) ; IDENT_15 . write ( IDENT_12 , IDENT_0 . serialize ( IDENT_17 ) , IDENT_19 . METHOD_9 ( "" ) ) ; return org . IDENT_5 . backend . server . util . IDENT_13 . convert ( IDENT_12 ) ; } catch ( java . lang . Exception e ) { throw org . IDENT_20 . common . services . backend . exceptions . IDENT_21 . METHOD_10 ( e ) ; } }
org . junit . Assert . assertNotNull ( IDENT_7 )