METHOD_0 ( ) { final java . lang . String IDENT_0 = STRING_0 ; final org . kie . workbench . common . IDENT_1 . client . IDENT_2 . types . common . IDENT_3 IDENT_4 = mock ( org . kie . workbench . common . IDENT_1 . client . IDENT_2 . types . common . IDENT_3 . class ) ; final org . kie . workbench . common . IDENT_1 . client . IDENT_2 . types . common . IDENT_3 reference = mock ( org . kie . workbench . common . IDENT_1 . client . IDENT_2 . types . common . IDENT_3 . class ) ; final org . kie . workbench . common . IDENT_1 . client . IDENT_2 . types . common . IDENT_3 IDENT_5 = mock ( org . kie . workbench . common . IDENT_1 . client . IDENT_2 . types . common . IDENT_3 . class ) ; final org . kie . workbench . common . IDENT_1 . api . IDENT_6 . IDENT_7 . IDENT_8 IDENT_9 = mock ( org . kie . workbench . common . IDENT_1 . api . IDENT_6 . IDENT_7 . IDENT_8 . class ) ; when ( reference . METHOD_1 ( ) ) . thenReturn ( IDENT_0 ) ; doReturn ( java . util . Optional . empty ( ) ) . when ( handler ) . METHOD_2 ( reference ) ; doReturn ( IDENT_5 ) . when ( handler ) . METHOD_3 ( IDENT_4 , IDENT_0 , IDENT_9 ) ; final java . util . List < org . kie . workbench . common . IDENT_1 . client . IDENT_2 . types . common . IDENT_3 > IDENT_10 = handler . insert ( IDENT_4 , reference , org . kie . workbench . common . IDENT_1 . client . IDENT_2 . types . persistence . IDENT_11 . IDENT_12 , IDENT_9 ) ; final java . util . List < org . kie . workbench . common . IDENT_1 . client . IDENT_2 . types . common . IDENT_3 > IDENT_13 = emptyList ( ) ; verify ( IDENT_14 ) . METHOD_4 ( IDENT_5 , IDENT_9 ) ; "<AssertPlaceHolder>" ; } METHOD_4 ( org . kie . workbench . common . IDENT_1 . client . IDENT_2 . types . common . IDENT_3 , org . kie . workbench . common . IDENT_1 . api . IDENT_6 . IDENT_7 . IDENT_8 ) { IDENT_15 . update ( IDENT_4 ) ; IDENT_16 . update ( IDENT_4 , IDENT_9 ) ; }
org . junit . Assert . assertEquals ( IDENT_13 , IDENT_10 )