METHOD_0 ( ) { 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 . 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 java . lang . String IDENT_4 = STRING_0 ; final java . lang . String IDENT_5 = STRING_1 ; when ( reference . METHOD_1 ( ) ) . thenReturn ( IDENT_4 ) ; when ( IDENT_3 . getType ( ) ) . thenReturn ( IDENT_5 ) ; when ( IDENT_6 . get ( IDENT_4 ) ) . thenReturn ( IDENT_3 ) ; when ( IDENT_7 . METHOD_2 ( ) ) . thenReturn ( METHOD_2 ) ; final java . util . Optional < org . kie . workbench . common . IDENT_0 . client . IDENT_1 . types . common . IDENT_2 > IDENT_8 = handler . METHOD_3 ( reference ) ; "<AssertPlaceHolder>" ; } of ( java . util . function . IDENT_9 ) { return new org . kie . workbench . common . IDENT_10 . core . util . IDENT_11 < IDENT_12 > ( IDENT_13 ) ; }
org . junit . Assert . assertEquals ( java . util . Optional . of ( IDENT_3 ) , IDENT_8 )