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 reference = 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 IDENT_7 = mock ( org . kie . workbench . common . IDENT_0 . api . IDENT_4 . IDENT_5 . IDENT_6 . class ) ; final java . util . List < org . kie . workbench . common . IDENT_0 . client . IDENT_1 . types . common . IDENT_2 > IDENT_8 = asList ( mock ( org . kie . workbench . common . IDENT_0 . client . IDENT_1 . types . common . IDENT_2 . class ) , 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 . persistence . IDENT_9 IDENT_10 = org . kie . workbench . common . IDENT_0 . client . IDENT_1 . types . persistence . IDENT_9 . IDENT_11 ; doReturn ( IDENT_8 ) . when ( handler ) . insert ( IDENT_3 , reference , IDENT_10 , IDENT_7 ) ; final java . util . List < org . kie . workbench . common . IDENT_0 . client . IDENT_1 . types . common . IDENT_2 > IDENT_12 = handler . insert ( IDENT_3 , reference , IDENT_10 , IDENT_7 ) ; "<AssertPlaceHolder>" ; } insert ( org . kie . workbench . common . IDENT_0 . client . IDENT_1 . types . common . IDENT_2 , org . kie . workbench . common . IDENT_0 . client . IDENT_1 . types . common . IDENT_2 , org . kie . workbench . common . IDENT_0 . client . IDENT_1 . types . persistence . IDENT_9 , org . kie . workbench . common . IDENT_0 . api . IDENT_4 . IDENT_5 . IDENT_6 ) { final java . util . Optional < org . kie . workbench . common . IDENT_0 . client . IDENT_1 . types . common . IDENT_2 > IDENT_13 = METHOD_1 ( reference ) ; if ( IDENT_13 . METHOD_2 ( ) ) { final org . kie . workbench . common . IDENT_0 . client . IDENT_1 . types . common . IDENT_2 parent = IDENT_13 . get ( ) ; final java . util . List < org . kie . workbench . common . IDENT_0 . client . IDENT_1 . types . common . IDENT_2 > IDENT_14 = parent . METHOD_3 ( ) ; final org . kie . workbench . common . IDENT_0 . client . IDENT_1 . types . common . IDENT_2 IDENT_15 = METHOD_4 ( IDENT_3 , parent . METHOD_5 ( ) , IDENT_7 ) ; final org . kie . workbench . common . IDENT_0 . client . IDENT_1 . types . common . IDENT_2 IDENT_16 = METHOD_6 ( reference , IDENT_14 ) ; IDENT_14 . add ( ( ( IDENT_14 . indexOf ( IDENT_16 ) ) + ( IDENT_10 . METHOD_7 ( ) ) ) , IDENT_15 ) ; IDENT_17 . METHOD_8 ( IDENT_3 , IDENT_7 ) ; return IDENT_17 . update ( parent ) ; } else { final org . kie . workbench . common . IDENT_0 . client . IDENT_1 . types . common . IDENT_2 IDENT_15 = METHOD_4 ( IDENT_3 , reference . METHOD_9 ( ) , IDENT_7 ) ; IDENT_17 . METHOD_8 ( IDENT_15 , IDENT_7 ) ; return new java . util . ArrayList ( ) ; } }
org . junit . Assert . assertEquals ( IDENT_8 , IDENT_12 )