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