METHOD_0 ( ) { when ( adapter . METHOD_1 ( IDENT_0 ) ) . thenReturn ( java . util . Optional . empty ( ) ) ; when ( adapter . METHOD_2 ( IDENT_1 . IDENT_2 , IDENT_0 ) ) . thenReturn ( IDENT_3 ) ; when ( IDENT_4 . getId ( IDENT_3 ) ) . thenReturn ( org . kie . workbench . common . IDENT_5 . core . util . IDENT_6 . IDENT_7 ) ; final java . lang . String IDENT_8 = IDENT_9 . METHOD_3 ( IDENT_0 ) ; "<AssertPlaceHolder>" ; } METHOD_3 ( T ) { return IDENT_10 . METHOD_4 ( ) . METHOD_5 ( ) . METHOD_1 ( IDENT_0 ) . METHOD_6 ( ( ) -> java . util . Optional . METHOD_7 ( IDENT_10 . METHOD_4 ( ) . METHOD_5 ( ) . METHOD_2 ( IDENT_1 . IDENT_2 , IDENT_0 ) ) . filter ( java . util . IDENT_11 :: IDENT_12 ) . map ( ( name ) -> IDENT_10 . METHOD_4 ( ) . METHOD_8 ( ) . getId ( name ) ) . METHOD_9 ( null ) ) ; }
org . junit . Assert . assertEquals ( IDENT_8 , org . kie . workbench . common . IDENT_5 . core . util . IDENT_6 . IDENT_7 )