ensure that a stateful bean gets properly @remove - d even if it throws an exception within its @predestroy method required by ejb 3.1 spec concode_field_sep InitialContext iniCtx concode_elem_sep String ARCHIVE_NAME concode_field_sep T lookup concode_elem_sep void testRemoveDestroysBean concode_elem_sep Archive<?> deploy
void function ( ) { SFSB1 loc0 = lookup ( "srini_string" , SFSB1 . class ) ; loc0 . doneAndDenyDestruction ( ) ; try { loc0 . doneAndDenyDestruction ( ) ; Assert . fail ( "srini_string" ) ; } catch ( NoSuchEJBException loc1 ) { } Assert . assertTrue ( SFSB1 . preDestroyCalled ) ; }