// make MockSecurityManager simulate JaasSecurityManager behavior. This is the whole point
// of this test, to catch JBoss AS integreation failure before the integration test suite
// does. However, this MUST NOT be a replacement for integration tests, it's just an
// additional safety layer.
MockJBossSecurityManager sm =
(MockJBossSecurityManager)ic.lookup(MockJBossSecurityManager.TEST_SECURITY_DOMAIN);
sm.setSimulateJBossJaasSecurityManager(true);
log.debug("setup done");
}