scope.onEvent(new HttpSessionStart(this, session));
RequestScopeInitDestroyComponent initDestroy =
(RequestScopeInitDestroyComponent) scope.getInstance(initDestroyContext);
Assert.assertNotNull(initDestroy);
RequestScopeInitOnlyComponent initOnly =
(RequestScopeInitOnlyComponent) scope.getInstance(initOnlyContext);
Assert.assertNotNull(initOnly);
RequestScopeDestroyOnlyComponent destroyOnly =
(RequestScopeDestroyOnlyComponent) scope.getInstance(destroyOnlyContext);
Assert.assertNotNull(destroyOnly);
Assert.assertTrue(initDestroy.isInitialized());
Assert.assertTrue(initOnly.isInitialized());
Assert.assertFalse(initDestroy.isDestroyed());
Assert.assertFalse(destroyOnly.isDestroyed());
// expire module
scope.onEvent(new HttpSessionEnd(this, session));