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