}
public void testAspect()
{
TestAspect.reset();
SimplePOJO pojoA = (SimplePOJO)getBean("BeanA");
pojoA.method();
assertEquals(1, TestAspect.invoked);
assertEquals(1, TestAspect.advice);
//Now check that the scope was honoured
TestAspect testA = TestAspect.last;
TestAspect.reset();
pojoA.anotherMethod();
assertEquals(1, TestAspect.invoked);
assertEquals(2, TestAspect.advice);
assertSame(testA, TestAspect.last);
TestAspect.reset();
SimplePOJO pojoB = (SimplePOJO)getBean("BeanB");
pojoB.method();
assertEquals(1, TestAspect.invoked);
assertEquals(1, TestAspect.advice);
assertNotSame(testA, TestAspect.last);
}