}
});
callAccessManager.expects(atLeastOnce()).method("checkPermission").will(returnValue(false));
DynaopComponentAdapterFactory factory = new DynaopComponentAdapterFactory(new DefaultComponentAdapterFactory(), aspects);
MutablePicoContainer container = new DefaultPicoContainer(factory);
container.registerComponentImplementation(SecureObject.class, SecureObjectImpl.class);
SecureObject object = (SecureObject) container.getComponentInstance(SecureObject.class);