}
catch (ClassNotFoundException expected)
{
}
TestIntercepted test = new TestIntercepted();
if (test.isIntercepted())
throw new RuntimeException("Should not be intercepted yet!");
test.doSomething();
if (test.isIntercepted() == false)
throw new RuntimeException("Not intercepted!");
}