assertEquals(beanCL, bean.getClass().getClassLoader());
bean = getBean("NotConfiguredClassLoader");
assertEquals(getClass().getClassLoader(), bean.getClass().getClassLoader());
GenericBeanFactory factory = (GenericBeanFactory) getBean("FactoryDeploymentConfiguredClassLoader");
bean = factory.createBean();
assertEquals(deploymentCL, bean.getClass().getClassLoader());
factory = (GenericBeanFactory) getBean("FactoryBeanConfiguredClassLoader");
bean = factory.createBean();
assertEquals(beanCL, bean.getClass().getClassLoader());
factory = (GenericBeanFactory) getBean("FactoryNotConfiguredClassLoader");