164165166167168169170171172173174
{ SecuredLocal bean = lookup("SecuredBean/local", SecuredLocal.class); assertEquals("nobody", bean.whoAmI()); bean.permitAll(); try { bean.onlyAdmin(); fail("Should have thrown EJBAccessException");