* @throws Exception
*/
public void testAllMethodsConstraint() throws Exception {
roleSet.add("Admin");
URL srcXml = classLoader.getResource("security/web2.xml");
WebAppDocument webAppDoc = WebAppDocument.Factory.parse(srcXml, options);
WebAppType webAppType = webAppDoc.getWebApp();
ComponentPermissions permissions = builder.buildSpecSecurityConfig(webAppType, roleSet, rolePermissionMap);
PermissionCollection unchecked = permissions.getUncheckedPermissions();
assertFalse(unchecked.implies(new WebResourcePermission("/Test", "!")));
PermissionCollection adminPermissions = permissions.getRolePermissions().get("Admin");
assertTrue(adminPermissions.implies(new WebResourcePermission("/Test", "GET,POST")));