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 . client . IDENT_1 . types . common . IDENT_2 parent = mock ( org . kie . workbench . common . IDENT_0 . client . IDENT_1 . types . common . IDENT_2 . class ) ; final java . lang . String IDENT_4 = STRING_0 ; final java . util . List < org . kie . workbench . common . IDENT_0 . client . IDENT_1 . types . common . IDENT_2 > IDENT_5 = java . util . Collections . singletonList ( mock ( org . kie . workbench . common . IDENT_0 . client . IDENT_1 . types . common . IDENT_2 . class ) ) ; when ( IDENT_3 . METHOD_1 ( ) ) . thenReturn ( IDENT_4 ) ; when ( parent . METHOD_2 ( ) ) . thenReturn ( IDENT_5 ) ; when ( IDENT_6 . get ( IDENT_4 ) ) . thenReturn ( parent ) ; final java . util . List < org . kie . workbench . common . IDENT_0 . client . IDENT_1 . types . common . IDENT_2 > IDENT_7 = validator . METHOD_3 ( IDENT_3 ) ; "<AssertPlaceHolder>" ; } METHOD_3 ( org . kie . workbench . common . IDENT_0 . client . IDENT_1 . types . common . IDENT_2 ) { final java . util . Optional < org . kie . workbench . common . IDENT_0 . client . IDENT_1 . types . common . IDENT_2 > parent = java . util . Optional . METHOD_4 ( IDENT_6 . get ( IDENT_3 . METHOD_1 ( ) ) ) ; if ( parent . METHOD_5 ( ) ) { return parent . get ( ) . METHOD_2 ( ) ; } else { return IDENT_6 . METHOD_6 ( ) ; } }
org . junit . Assert . assertEquals ( IDENT_5 , IDENT_7 )