}catch(InvalidAccessValueException expected){}
}
public void testValidation_AuthenticationAllowedOnlyInSystemNamespace()throws Exception{
DefinitionAccess access = definitionParser.parseAccess(null, "AUTHENTICATED");
access.validate(StringSourceLoader.DEFAULT_NAMESPACE, true, false);
//AUTHENTICATED/UNAUTHENTICATED not supported in custom namespaces
try{
access.validate(StringSourceLoader.DEFAULT_CUSTOM_NAMESPACE, true, false);
fail("Authentication values for access should not be allowed in custom namespaces");