METHOD_0 ( ) { final org . kie . workbench . common . IDENT_0 . client . IDENT_1 . types . common . IDENT_2 IDENT_3 = mock ( org . kie . workbench . common . IDENT_0 . client . IDENT_1 . types . common . IDENT_2 . class ) ; final org . kie . workbench . common . IDENT_0 . api . IDENT_4 . IDENT_5 . IDENT_6 parent = METHOD_1 ( ) ; final java . lang . String IDENT_7 = STRING_0 ; final java . lang . String type = STRING_1 ; final org . kie . workbench . common . IDENT_0 . api . property . IDENT_0 . IDENT_8 IDENT_9 = mock ( org . kie . workbench . common . IDENT_0 . api . property . IDENT_0 . IDENT_8 . class ) ; final org . kie . workbench . common . IDENT_0 . api . IDENT_4 . IDENT_5 . IDENT_6 IDENT_10 = METHOD_1 ( ) ; final org . kie . workbench . common . IDENT_0 . api . property . IDENT_0 . IDENT_11 name = mock ( org . kie . workbench . common . IDENT_0 . api . property . IDENT_0 . IDENT_11 . class ) ; final java . util . List < org . kie . workbench . common . IDENT_0 . api . IDENT_4 . IDENT_5 . IDENT_6 > IDENT_12 = singletonList ( IDENT_10 ) ; when ( name . getValue ( ) ) . thenReturn ( type ) ; when ( IDENT_10 . getName ( ) ) . thenReturn ( name ) ; when ( IDENT_9 . METHOD_2 ( ) ) . thenReturn ( type ) ; when ( parent . METHOD_3 ( ) ) . thenReturn ( IDENT_9 ) ; when ( IDENT_3 . METHOD_4 ( ) ) . thenReturn ( IDENT_7 ) ; when ( IDENT_13 . get ( IDENT_7 ) ) . thenReturn ( parent ) ; doReturn ( IDENT_12 ) . when ( handler ) . METHOD_5 ( ) ; final java . util . Optional < org . kie . workbench . common . IDENT_0 . api . IDENT_4 . IDENT_5 . IDENT_6 > IDENT_14 = java . util . Optional . of ( IDENT_10 ) ; final java . util . Optional < org . kie . workbench . common . IDENT_0 . api . IDENT_4 . IDENT_5 . IDENT_6 > IDENT_15 = handler . METHOD_6 ( IDENT_3 ) ; "<AssertPlaceHolder>" ; } METHOD_6 ( org . kie . workbench . common . IDENT_0 . client . IDENT_1 . types . common . IDENT_2 ) { final java . util . Optional < org . kie . workbench . common . IDENT_0 . api . IDENT_4 . IDENT_5 . IDENT_6 > IDENT_16 = java . util . Optional . METHOD_7 ( IDENT_13 . get ( IDENT_3 . METHOD_4 ( ) ) ) ; if ( IDENT_16 . METHOD_8 ( ) ) { final org . kie . workbench . common . IDENT_0 . api . IDENT_4 . IDENT_5 . IDENT_6 parent = IDENT_16 . get ( ) ; if ( ( parent . METHOD_3 ( ) ) == null ) { return java . util . Optional . of ( parent ) ; } else { for ( final org . kie . workbench . common . IDENT_0 . api . IDENT_4 . IDENT_5 . IDENT_6 IDENT_10 : METHOD_5 ( ) ) { if ( java . util . IDENT_17 . equals ( IDENT_10 . getName ( ) . getValue ( ) , parent . METHOD_3 ( ) . METHOD_2 ( ) ) ) { return java . util . Optional . of ( IDENT_10 ) ; } } } } return java . util . Optional . empty ( ) ; }
org . junit . Assert . assertEquals ( IDENT_14 , IDENT_15 )