Policy p = Policy.getPolicy();
SimplePrincipal[] caller = {new SimplePrincipal("GetRole")};
ProtectionDomain pd = new ProtectionDomain(null, null, null, caller);
WebResourcePermission wrp = new WebResourcePermission("/excluded/x", "GET");
assertFalse("/excluded/x GET", p.implies(pd, wrp));
wrp = new WebResourcePermission("/excluded/x", "OPTIONS");
assertFalse("/excluded/x OPTIONS", p.implies(pd, wrp));
wrp = new WebResourcePermission("/excluded/x", "HEAD");
assertFalse("/excluded/x HEAD", p.implies(pd, wrp));
wrp = new WebResourcePermission("/excluded/x", "POST");