Class<?> clazz = loader.loadClass(TestAspect.class.getName());
assertNotSame(TestAspect.class, clazz);
assertSame(loader, clazz.getClassLoader());
Aspect aspect = assertInstanceOf(getBean("Aspect"), Aspect.class, false);
AspectDefinition def = aspect.getDefinition();
AspectFactory factory = def.getFactory();
Object global = factory.createPerVM();
assertSame(getClass().getClassLoader(), global.getClass().getClassLoader());