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");
bean = factory.createBean();
assertEquals(getClass().getClassLoader(), bean.getClass().getClassLoader());
}