METHOD_0 ( ) { long IDENT_0 = 1 ; final org . IDENT_1 . services . task . impl . model . IDENT_2 task = new org . IDENT_1 . services . task . impl . model . METHOD_1 ( ) ; task . setId ( IDENT_0 ) ; task . setName ( STRING_0 ) ; final org . IDENT_1 . services . task . impl . model . IDENT_3 IDENT_4 = new org . IDENT_1 . services . task . impl . model . METHOD_2 ( ) ; final java . lang . String IDENT_5 = STRING_1 ; IDENT_4 . METHOD_3 ( IDENT_5 ) ; final java . lang . String IDENT_6 = STRING_2 ; IDENT_4 . METHOD_4 ( IDENT_6 ) ; task . METHOD_5 ( IDENT_4 ) ; when ( IDENT_7 . execute ( any ( org . IDENT_1 . services . task . commands . IDENT_8 . class ) ) ) . thenReturn ( task ) ; final org . IDENT_1 . services . api . model . IDENT_9 IDENT_10 = mock ( org . IDENT_1 . services . api . model . IDENT_9 . class ) ; when ( IDENT_11 . METHOD_6 ( IDENT_5 , IDENT_6 ) ) . thenReturn ( IDENT_10 ) ; final java . lang . String IDENT_12 = IDENT_13 . METHOD_7 ( 1 ) ; "<AssertPlaceHolder>" ; verify ( IDENT_11 ) . METHOD_6 ( IDENT_5 , IDENT_6 ) ; verify ( IDENT_14 ) . render ( eq ( task . getName ( ) ) , eq ( task ) , eq ( IDENT_10 ) , METHOD_8 ( ) ) ; } METHOD_7 ( long ) { org . kie . api . task . model . IDENT_15 task = IDENT_7 . execute ( new org . IDENT_1 . services . task . commands . METHOD_9 ( IDENT_16 . getName ( ) , IDENT_0 ) ) ; if ( task == null ) { return "" ; } java . lang . String name = task . getName ( ) ; final java . lang . String IDENT_5 = task . METHOD_10 ( ) . METHOD_11 ( ) ; final java . lang . String IDENT_6 = task . METHOD_10 ( ) . METHOD_12 ( ) ; org . IDENT_1 . services . api . model . IDENT_9 IDENT_17 = null ; if ( ( IDENT_5 != null ) && ( IDENT_6 != null ) ) { IDENT_17 = IDENT_11 . METHOD_6 ( IDENT_5 , IDENT_6 ) ; } java . util . Map < java . lang . String , java . lang . Object > IDENT_18 = new java . util . HashMap < java . lang . String , java . lang . Object > ( ) ; org . kie . internal . task . api . IDENT_19 IDENT_20 = METHOD_13 ( task ) ; java . lang . Object input = null ; long IDENT_21 = task . METHOD_10 ( ) . METHOD_14 ( ) ; if ( IDENT_21 != ( - 1 ) ) { org . kie . api . task . model . IDENT_22 content = IDENT_7 . METHOD_15 ( IDENT_21 ) ; input = org . IDENT_1 . services . task . utils . IDENT_23 . METHOD_16 ( content . METHOD_17 ( ) , IDENT_20 . METHOD_18 ( ) , IDENT_20 . METHOD_19 ( ) ) ; } if ( input == null ) { input = new java . util . HashMap < java . lang . String , java . lang . Object > ( ) ; } java . lang . Object output = null ; long IDENT_24 = task . METHOD_10 ( ) . METHOD_20 ( ) ; if ( IDENT_24 != ( - 1 ) ) { org . kie . api . task . model . IDENT_22 content = IDENT_7 . METHOD_15 ( IDENT_24 ) ; output = org . IDENT_1 . services . task . utils . IDENT_23 . METHOD_16 ( content . METHOD_17 ( ) , IDENT_20 . METHOD_18 ( ) , IDENT_20 . METHOD_19 ( ) ) ; } if ( output == null ) { output = new java . util . HashMap < java . lang . String , java . lang . Object > ( ) ; } java . util . Map < java . lang . String , java . lang . Object > IDENT_25 = new java . util . HashMap < java . lang . String , java . lang . Object > ( ) ; if ( ( IDENT_6 != null ) && ( ! ( IDENT_6 . equals ( "" ) ) ) ) { java . util . Map < java . lang . String , java . lang . String > IDENT_26 = IDENT_27 . METHOD_21 ( IDENT_5 , IDENT_6 , task . getName ( ) ) ; if ( IDENT_26 == null ) { IDENT_26 = new java . util . HashMap < java . lang . String , java . lang . String > ( ) ; } for ( java . lang . String key : IDENT_26 . METHOD_22 ( ) ) { java . lang . Object value = ( ( java . util . Map < java . lang . String , java . lang . Object > ) ( output ) ) . get ( key ) ; if ( value == null ) { value = "" ; } IDENT_25 . put ( key , value ) ; } } else if ( ( output instanceof java . util . Map ) && ( ! ( ( ( java . util . Map ) ( output ) ) . isEmpty ( ) ) ) ) { IDENT_25 . METHOD_23 ( ( ( java . util . Map < java . lang . String , java . lang . Object > ) ( output ) ) ) ; } IDENT_18 . put ( STRING_3 , task ) ; IDENT_18 . put ( STRING_4 , IDENT_20 ) ; if ( input instanceof java . util . Map ) { IDENT_18 . put ( STRING_5 , input ) ; for ( Map . Entry < java . lang . String , java . lang . Object > IDENT_28 : ( ( java . util . Map < java . lang . String , java . lang . Object > ) ( input ) ) . entrySet ( ) ) { IDENT_18 . put ( IDENT_28 . getKey ( ) , IDENT_28 . getValue ( ) ) ; } } else { IDENT_18 . put ( STRING_6 , input ) ; } IDENT_18 . put ( STRING_7 , IDENT_25 ) ; for ( Map . Entry < java . lang . String , java . lang . Object > IDENT_29 : ( ( java . util . Map < java . lang . String , java . lang . Object > ) ( IDENT_25 ) ) . entrySet ( ) ) { IDENT_18 . put ( IDENT_29 . getKey ( ) , IDENT_29 . getValue ( ) ) ; } for ( org . IDENT_1 . kie . services . impl . IDENT_12 . IDENT_30 provider : IDENT_31 ) { java . lang . String template = provider . render ( name , task , IDENT_17 , IDENT_18 ) ; if ( ! ( org . drools . core . util . StringUtils . isEmpty ( template ) ) ) { return template ; } } org . IDENT_1 . kie . services . impl . IDENT_12 . IDENT_32 . logger . warn ( STRING_8 , name , ( IDENT_17 == null ? "" : IDENT_17 . getName ( ) ) ) ; return "" ; }
org . junit . Assert . assertEquals ( "" , IDENT_12 )