@Override
protected MockClassLoaderPolicy determinePolicy()
{
MockClassLoadingMetaData metaData = getClassLoadingMetaData();
MockClassLoaderPolicy policy = MockClassLoaderHelper.createMockClassLoaderPolicy(getContextName());
policy.setPrefix(metaData.getPrefix());
policy.setPackageNames(getPackageNames());
policy.setPaths(metaData.getPaths());
policy.setIncluded(metaData.getIncludedClasses());
policy.setExcluded(metaData.getExcludedClasses());
policy.setImportAll(isImportAll());
policy.setShutdownPolicy(getShutdownPolicy());
policy.setDelegates(getDelegates());
return policy;
}