METHOD_0 ( ) { METHOD_1 ( ) ; org . IDENT_0 . common . services . project . model . IDENT_1 IDENT_2 = mock ( org . IDENT_0 . common . services . project . model . IDENT_1 . class ) ; when ( IDENT_3 . exists ( any ( org . IDENT_4 . backend . IDENT_5 . Path . class ) ) ) . thenReturn ( false ) ; when ( IDENT_6 . METHOD_2 ( IDENT_7 , org . kie . workbench . common . IDENT_8 . IDENT_9 . backend . server . IDENT_10 . IDENT_11 ) ) . thenReturn ( IDENT_2 ) ; org . IDENT_0 . common . services . project . model . IDENT_1 result = IDENT_12 . METHOD_3 ( module , org . kie . workbench . common . IDENT_8 . IDENT_9 . backend . server . IDENT_10 . IDENT_11 ) ; "<AssertPlaceHolder>" ; verify ( IDENT_6 ) . METHOD_2 ( IDENT_7 , org . kie . workbench . common . IDENT_8 . IDENT_9 . backend . server . IDENT_10 . IDENT_11 ) ; } METHOD_3 ( org . IDENT_0 . common . services . project . model . IDENT_13 , java . lang . String ) { if ( ( ( IDENT_14 == null ) || ( "" . equals ( IDENT_14 ) ) ) || ( module == null ) ) { return null ; } final org . IDENT_0 . common . services . project . model . IDENT_1 IDENT_7 = IDENT_6 . METHOD_4 ( module ) ; final org . IDENT_4 . java . nio . file . Path IDENT_15 = org . IDENT_4 . backend . server . util . IDENT_16 . convert ( IDENT_7 . METHOD_5 ( ) ) ; final java . lang . String IDENT_17 = IDENT_14 . replace ( STRING_0 , "/" ) ; final org . IDENT_4 . java . nio . file . Path IDENT_18 = IDENT_15 . resolve ( IDENT_17 ) ; if ( ! ( IDENT_3 . exists ( IDENT_18 ) ) ) { return IDENT_6 . METHOD_2 ( IDENT_7 , IDENT_14 ) ; } else { return IDENT_6 . METHOD_6 ( org . IDENT_4 . backend . server . util . IDENT_16 . convert ( IDENT_18 ) ) ; } }
org . junit . Assert . assertEquals ( IDENT_2 , result )