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 java . util . List < org . kie . workbench . common . IDENT_0 . client . IDENT_1 . types . common . IDENT_2 > IDENT_4 = 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 . api . IDENT_5 . IDENT_6 . IDENT_7 IDENT_8 = mock ( org . kie . workbench . common . IDENT_0 . api . IDENT_5 . IDENT_6 . IDENT_7 . class ) ; when ( IDENT_9 . METHOD_1 ( reference ) ) . thenReturn ( IDENT_8 ) ; when ( IDENT_10 . METHOD_2 ( IDENT_3 , reference , IDENT_8 ) ) . thenReturn ( IDENT_4 ) ; final java . util . List < org . kie . workbench . common . IDENT_0 . client . IDENT_1 . types . common . IDENT_2 > IDENT_11 = IDENT_12 . create ( IDENT_3 , reference , org . kie . workbench . common . IDENT_0 . client . IDENT_1 . types . persistence . IDENT_13 . IDENT_14 ) ; "<AssertPlaceHolder>" ; } create ( 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_13 ) { if ( IDENT_15 == ( org . kie . workbench . common . IDENT_0 . client . IDENT_1 . types . persistence . IDENT_13 . IDENT_14 ) ) { final org . kie . workbench . common . IDENT_0 . api . IDENT_5 . IDENT_6 . IDENT_7 IDENT_16 = IDENT_9 . METHOD_1 ( reference ) ; return IDENT_10 . METHOD_2 ( record , reference , IDENT_16 ) ; } else { final org . kie . workbench . common . IDENT_0 . api . IDENT_5 . IDENT_6 . IDENT_7 IDENT_8 = IDENT_9 . METHOD_3 ( reference , IDENT_15 ) ; return IDENT_10 . insert ( record , reference , IDENT_15 , IDENT_8 ) ; } }
org . junit . Assert . assertEquals ( IDENT_4 , IDENT_11 )