public void testBean() throws Exception {
// create the class loader
File dynamicClassLocation = new File("../dynamic-spring-support/bin");
DynamicClassLoader classLoader = new DynamicClassLoader();
CustomClassLoaderFactory factory = new CustomClassLoaderFactory();
factory.setLocation(dynamicClassLocation);
classLoader.setFactory(factory);
// create the bean factory
DynamicBeanFactory beanFactory = new DynamicBeanFactory();
beanFactory.setBeanClassLoader(classLoader);