assertNotNull(dependency);
pojo = (POJO) getBean("Intercepted");
assertNotNull(pojo);
int called = TestAspectWithDependency.called;
TestInterceptor.invoked = false;
pojo.method(2);
assertTrue("Interceptor was not rebound", called + 1 == TestAspectWithDependency.called);
assertTrue("Should not be caching the interceptor/dependency across rebinding", dependency == TestAspectWithDependency.invoked);
assertTrue(TestInterceptor.invoked);
}
finally