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