public A()
{
TestIntercepted test = new TestIntercepted();
if (TestInterceptor.intercepted)
throw new RuntimeException("Should not be intercepted yet!");
test.doSomething();
if (TestInterceptor.intercepted == false)
throw new RuntimeException("Not intercepted!");
}
}