startContainer(classes);
AppScopedBean appBeanInstance = getInstance(AppScopedBean.class);
Assert.assertNotNull(appBeanInstance);
PersonalDataBean pdb1 = appBeanInstance.getPdb().getInstance();
Assert.assertNotNull(pdb1);
// now we reset the session Context so we should get a new contextual instance.
getWebBeansContext().getContextsService().endContext(SessionScoped.class, null);
getWebBeansContext().getContextsService().startContext(SessionScoped.class, null);
PersonalDataBean pdb2 = appBeanInstance.getPdb().getInstance();
Assert.assertNotNull(pdb2);
// pdb1 and pdb2 are in different sessions, so they must not be the same instance!
Assert.assertTrue(pdb1 != pdb2);
}