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