METHOD_0 ( ) { org . kie . workbench . common . IDENT_0 . core . client . session . IDENT_1 session = mock ( org . kie . workbench . common . IDENT_0 . core . client . session . IDENT_1 . class ) ; org . kie . workbench . common . IDENT_0 . core . client . IDENT_2 . IDENT_3 IDENT_4 = mock ( org . kie . workbench . common . IDENT_0 . core . client . IDENT_2 . IDENT_3 . class ) ; org . kie . workbench . common . IDENT_0 . core . IDENT_5 . IDENT_6 IDENT_5 = mock ( org . kie . workbench . common . IDENT_0 . core . IDENT_5 . IDENT_6 . class ) ; when ( session . METHOD_1 ( ) ) . thenReturn ( IDENT_4 ) ; when ( IDENT_4 . METHOD_2 ( ) ) . thenReturn ( IDENT_5 ) ; when ( IDENT_5 . METHOD_3 ( ) ) . thenReturn ( metadata ) ; when ( IDENT_7 . METHOD_4 ( ) ) . thenReturn ( session ) ; org . IDENT_8 . IDENT_9 . IDENT_10 IDENT_11 = mock ( org . IDENT_8 . IDENT_9 . IDENT_10 . class ) ; IDENT_12 . load ( metadata , IDENT_11 ) ; verify ( index , times ( 1 ) ) . put ( eq ( metadata ) , eq ( registry ) ) ; verify ( registry , times ( 1 ) ) . METHOD_5 ( eq ( org . kie . workbench . common . IDENT_0 . IDENT_13 . client . IDENT_14 . IDENT_15 . IDENT_16 ) ) ; verify ( IDENT_11 , times ( 1 ) ) . execute ( ) ; org . kie . workbench . common . IDENT_0 . IDENT_13 . IDENT_14 . IDENT_17 IDENT_18 = IDENT_12 . METHOD_6 ( ) ; "<AssertPlaceHolder>" ; } METHOD_6 ( ) { return METHOD_7 ( IDENT_7 . METHOD_4 ( ) ) ; }
org . junit . Assert . assertEquals ( registry , IDENT_18 )