METHOD_0 ( ) { final java . lang . String IDENT_0 = org . kie . workbench . common . IDENT_1 . client . IDENT_2 . types . common . IDENT_3 . METHOD_1 ( ) ; final org . kie . workbench . common . IDENT_1 . api . IDENT_4 . IDENT_5 . IDENT_6 IDENT_7 = mock ( org . kie . workbench . common . IDENT_1 . api . IDENT_4 . IDENT_5 . IDENT_6 . class ) ; final java . util . Optional < java . lang . String > IDENT_8 = java . util . Optional . of ( STRING_0 ) ; when ( IDENT_9 . METHOD_2 ( ) ) . thenReturn ( IDENT_7 ) ; when ( IDENT_7 . METHOD_3 ( IDENT_0 ) ) . thenReturn ( IDENT_8 ) ; final java . util . Optional < java . lang . String > IDENT_10 = utils . METHOD_3 ( IDENT_0 ) ; "<AssertPlaceHolder>" ; } METHOD_3 ( java . lang . String ) { if ( ( ( IDENT_11 ) != null ) && ( IDENT_11 . METHOD_4 ( IDENT_0 ) ) ) { return IDENT_11 . entrySet ( ) . stream ( ) . filter ( ( IDENT_12 ) -> java . util . IDENT_13 . equals ( IDENT_12 . getValue ( ) , IDENT_0 ) ) . METHOD_5 ( ) . map ( java . util . Map . Entry :: getKey ) ; } if ( ( this . parent ) != null ) { return parent . METHOD_3 ( IDENT_0 ) ; } return java . util . Optional . empty ( ) ; }
org . junit . Assert . assertEquals ( IDENT_8 , IDENT_10 )