METHOD_0 ( ) { final org . kie . workbench . common . IDENT_0 . client . IDENT_1 . types . common . IDENT_2 reference = mock ( org . kie . workbench . common . IDENT_0 . client . IDENT_1 . types . common . IDENT_2 . class ) ; final java . lang . String IDENT_3 = STRING_0 ; final java . util . Optional < org . kie . workbench . common . IDENT_0 . api . IDENT_4 . IDENT_5 . IDENT_6 > IDENT_7 = java . util . Optional . empty ( ) ; final java . util . List < org . kie . workbench . common . IDENT_0 . api . IDENT_4 . IDENT_5 . IDENT_6 > IDENT_8 = new java . util . ArrayList ( ) ; when ( reference . METHOD_1 ( ) ) . thenReturn ( IDENT_3 ) ; when ( IDENT_9 . METHOD_2 ( ) ) . thenReturn ( IDENT_8 ) ; doReturn ( IDENT_7 ) . when ( handler ) . METHOD_3 ( IDENT_3 ) ; final java . util . List < org . kie . workbench . common . IDENT_0 . api . IDENT_4 . IDENT_5 . IDENT_6 > IDENT_10 = handler . METHOD_4 ( reference ) ; "<AssertPlaceHolder>" ; } METHOD_4 ( 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 > parent = METHOD_3 ( reference . METHOD_1 ( ) ) ; if ( parent . METHOD_5 ( ) ) { return parent . get ( ) . METHOD_6 ( ) ; } else { return METHOD_7 ( ) ; } }
org . junit . Assert . assertEquals ( IDENT_8 , IDENT_10 )