caller = new SimplePrincipal[]{new SimplePrincipal("R1")};
pd = new ProtectionDomain(null, null, null, caller);
wrp = new WebResourcePermission("/a/x", "GET");
assertTrue("/a/x GET", p.implies(pd, wrp));
wrp = new WebResourcePermission("/a/x", "POST");
boolean implied = p.implies(pd, wrp);
assertTrue("/a/x POST", implied);
wrp = new WebResourcePermission("/b/x", "GET");
assertTrue("/b/x GET", p.implies(pd, wrp));
wrp = new WebResourcePermission("/b/x", "POST");
assertTrue("/b/x POST", p.implies(pd, wrp));