public void testPerClassJoinPoint() throws Exception
{
POJO pojoA = (POJO)getBean("POJO1A");
POJO pojoB = (POJO)getBean("POJO1B");
POJO2 pojo2 = (POJO2)getBean("POJO2");
ScopedFactoryAspect.last = null;
pojoA.method();
ScopedFactoryAspect a1 = ScopedFactoryAspect.last;
assertNotNull(a1);
ScopedFactoryAspect.last = null;
pojoA.method(1);
ScopedFactoryAspect a2 = ScopedFactoryAspect.last;
assertNotNull(a2);
ScopedFactoryAspect.last = null;
pojoB.method();
ScopedFactoryAspect a3 = ScopedFactoryAspect.last;
assertNotNull(a3);
ScopedFactoryAspect.last = null;
pojoB.method(1);
ScopedFactoryAspect a4 = ScopedFactoryAspect.last;
assertNotNull(a4);
ScopedFactoryAspect.last = null;
pojo2.method();
ScopedFactoryAspect a5 = ScopedFactoryAspect.last;
assertNotNull(a5);
ScopedFactoryAspect.last = null;
pojo2.method(1);
ScopedFactoryAspect a6 = ScopedFactoryAspect.last;
assertNotNull(a6);
assertNotSame(a1, a2);