}
}
public void testRestrictedMetaDataByName() throws Exception
{
MutableMetaDataLoader loader = setUpRestricted();
Object object = new Object();
loader.addMetaData("Object", object, Object.class);
assertNotNull(loader.retrieveMetaData("Object"));
RestrictedInterface restrictedMetaData = new RestrictedImpl();
try
{
loader.addMetaData("Restricted", restrictedMetaData, RestrictedInterface.class);
}
catch (Throwable t)
{
checkThrowable(SecurityException.class, t);
}