PermissionCollection pc =
policy.getPermissions((ProtectionDomain) null);
if (pc.elements().hasMoreElements()) {
throw new Error("permissions returned for null protection domain");
}
if (policy.implies(null, new RuntimePermission("foo"))) {
throw new Error();
}
}
}