fail("Bad HTTP method for a WebResourcePermission");
    public void testConstructorStringString() {        WebResourcePermission permission = new WebResourcePermission("/foo", "GET,POST");        assertTrue(permission.equals(permission));        assertEquals(permission.getName(), "/foo");        assertEquals(permission.getActions(), "GET,POST");                permission = new WebResourcePermission("/foo", "GET,POST,POST,GET");        assertEquals(permission.getActions(), "GET,POST");                permission = new WebResourcePermission("/", "GET,POST");        permission = new WebResourcePermission("/:/foo", "GET,POST");        permission = new WebResourcePermission("/:*.asp", "GET,POST");        permission = new WebResourcePermission("/:/foo:*.asp", "GET,POST");        permission = new WebResourcePermission("/bar/*", "GET,POST");        permission = new WebResourcePermission("", "GET,POST");        permission = new WebResourcePermission("/*", "GET,POST");        permission = new WebResourcePermission("/*:/bar/stool", "GET,POST");        permission = new WebResourcePermission("/bar/*:/bar/stool", "GET,POST");        // bad HTTP method        try {            permission = new WebResourcePermission("/foo", "GET,POST,BAR");            fail("Bad HTTP method");        } catch(IllegalArgumentException iae) {        }        // bad HTTP method for a WebResourcePermission        try {            permission = new WebResourcePermission("/foo", "GET,POST:INTEGRAL");            fail("Bad HTTP method for a WebResourcePermission");        } catch(IllegalArgumentException iae) {        }        // null URLPatternSpec for a WebResourcePermission        try {            permission = new WebResourcePermission(null, "GET,POST");            fail("null URLPatternSpec for a WebResourcePermission");        } catch(IllegalArgumentException iae) {        }        // missing qualifiers        try {            permission = new WebResourcePermission("/foo:", "GET,POST");            fail("/foo:");        } catch(IllegalArgumentException iae) {        }        // qualifer provided when first pattern isn't path-prefix        try {            permission = new WebResourcePermission("/foo:/foo/bar", "GET,POST");            fail("/foo:/foo/bar");        } catch(IllegalArgumentException iae) {        }        try {            permission = new WebResourcePermission("/foo/*:*.asp", "GET,POST");            fail("/foo/*:*.asp");        } catch(IllegalArgumentException iae) {        }        try {            permission = new WebResourcePermission("/foo:/", "GET,POST");            fail("/foo:/");        } catch(IllegalArgumentException iae) {        }        try {            permission = new WebResourcePermission("/bar/*:/cat/stool/*", "GET,POST");            fail("/bar/*:/cat/stool/*");        } catch(IllegalArgumentException iae) {        }        try {            permission = new WebResourcePermission("/bar/*:/*", "GET,POST");            fail("/bar/*:/");        } catch(IllegalArgumentException iae) {        }        try {            permission = new WebResourcePermission("/bar/stool/*:/bar", "GET,POST");            fail("/bar/stool/*:/bar");        } catch(IllegalArgumentException iae) {        }            }