METHOD_0 ( ) { final IDENT_0 . dom . IDENT_1 element = mock ( IDENT_0 . dom . IDENT_1 . class ) ; final IDENT_0 . dom . IDENT_2 IDENT_3 = mock ( IDENT_0 . dom . IDENT_2 . class ) ; final int expected = INT_0 ; element . IDENT_3 = IDENT_3 ; when ( IDENT_3 . METHOD_1 ( org . kie . workbench . common . IDENT_4 . client . IDENT_5 . types . IDENT_6 . IDENT_7 . IDENT_8 . IDENT_9 . IDENT_10 ) ) . thenReturn ( ( STRING_0 + ( org . kie . workbench . common . IDENT_4 . client . IDENT_5 . types . IDENT_6 . IDENT_7 . IDENT_8 . IDENT_9 . IDENT_11 ) ) ) ; final int actual = helper . METHOD_2 ( element ) ; "<AssertPlaceHolder>" ; } METHOD_2 ( IDENT_0 . dom . IDENT_1 ) { final java . lang . String IDENT_12 = element . IDENT_3 . METHOD_1 ( org . kie . workbench . common . IDENT_4 . client . IDENT_5 . types . IDENT_6 . IDENT_7 . IDENT_8 . IDENT_9 . IDENT_10 ) . replace ( org . kie . workbench . common . IDENT_4 . client . IDENT_5 . types . IDENT_6 . IDENT_7 . IDENT_8 . IDENT_9 . IDENT_11 , "" ) ; if ( org . kie . workbench . common . IDENT_13 . core . util . StringUtils . isEmpty ( IDENT_12 ) ) { return 0 ; } return java . lang . Integer . valueOf ( IDENT_12 ) ; }
org . junit . Assert . assertEquals ( expected , actual )