METHOD_0 ( ) { org . kie . workbench . common . IDENT_0 . core . rule . context . impl . IDENT_1 . IDENT_2 IDENT_3 = new org . kie . workbench . common . IDENT_0 . core . rule . context . impl . IDENT_1 . METHOD_1 ( ) ; when ( state . METHOD_2 ( ) ) . thenReturn ( IDENT_3 ) ; org . kie . workbench . common . IDENT_0 . core . graph . Element parent = new org . kie . workbench . common . IDENT_0 . core . graph . impl . METHOD_3 ( STRING_0 ) ; org . kie . workbench . common . IDENT_0 . core . graph . Node child = new org . kie . workbench . common . IDENT_0 . core . graph . impl . METHOD_3 ( STRING_1 ) ; final org . kie . workbench . common . IDENT_0 . core . rule . context . IDENT_4 [ ] IDENT_5 = new org . kie . workbench . common . IDENT_0 . core . rule . context . IDENT_4 [ 1 ] ; IDENT_6 . evaluate ( ( builder ) -> IDENT_5 [ 0 ] = builder . METHOD_4 ( parent , child ) ) ; verify ( IDENT_7 , times ( 1 ) ) . evaluate ( eq ( IDENT_8 ) , eq ( IDENT_5 [ 0 ] ) ) ; "<AssertPlaceHolder>" ; } METHOD_5 ( org . kie . workbench . common . IDENT_9 . client . IDENT_10 . types . common . IDENT_11 ) { return java . util . Optional . METHOD_6 ( IDENT_12 . get ( IDENT_13 . METHOD_7 ( ) ) ) ; }
org . junit . Assert . assertEquals ( parent , IDENT_3 . METHOD_5 ( child ) )