METHOD_0 ( ) { final org . kie . workbench . common . IDENT_0 . core . client . IDENT_1 . IDENT_2 . IDENT_3 . IDENT_4 provider = mock ( org . kie . workbench . common . IDENT_0 . core . client . IDENT_1 . IDENT_2 . IDENT_3 . IDENT_4 . class ) ; final java . lang . String IDENT_5 = STRING_0 ; when ( IDENT_6 . METHOD_1 ( element ) ) . thenReturn ( provider ) ; when ( provider . getText ( element ) ) . thenReturn ( IDENT_5 ) ; final java . lang . String IDENT_7 = factory . getName ( element ) ; "<AssertPlaceHolder>" ; } getName ( org . kie . workbench . common . IDENT_8 . api . IDENT_9 . IDENT_10 . IDENT_11 ) { final org . kie . workbench . common . IDENT_8 . api . IDENT_9 . IDENT_10 . IDENT_12 parent = IDENT_13 . METHOD_2 ( ) ; if ( parent instanceof org . kie . workbench . common . IDENT_8 . api . IDENT_9 . IDENT_14 ) { final org . kie . workbench . common . IDENT_8 . api . IDENT_9 . IDENT_14 IDENT_15 = ( ( org . kie . workbench . common . IDENT_8 . api . IDENT_9 . IDENT_14 ) ( IDENT_13 . METHOD_2 ( ) ) ) ; final java . util . Optional < org . kie . workbench . common . IDENT_8 . api . property . IDENT_8 . IDENT_16 > name = java . util . Optional . METHOD_3 ( IDENT_15 . getName ( ) ) ; return name . map ( IDENT_16 :: getValue ) . METHOD_4 ( org . kie . workbench . common . IDENT_8 . backend . IDENT_9 . IDENT_10 . IDENT_17 . IDENT_18 ) ; } return org . kie . workbench . common . IDENT_8 . backend . IDENT_9 . IDENT_10 . IDENT_17 . IDENT_18 ; }
org . junit . Assert . assertEquals ( IDENT_5 , IDENT_7 )