}
private void invokeContainer(boolean overriding) throws Throwable
{
AspectManager manager = AspectManager.instance();
ClassContainer container = (overriding ) ? new ContainerWithChainOverriding("X", manager) : new ClassContainer("X", manager);
container.setClass(Child.class);
container.initializeClassContainer();
Child child = new Child();
MethodInvocation invocation = getMethodInvocation(container, "childMethod", child);
TestInterceptor.invoked = false;
container.dynamicInvoke(child, invocation);
assertTrue(TestInterceptor.invoked);
invocation = getMethodInvocation(container, "parentMethod", child);
TestInterceptor.invoked = false;
container.dynamicInvoke(child, invocation);
assertEquals(overriding, TestInterceptor.invoked);
}