FormsRootConfig config = parser.parse(inputs);
FormConfig form = config.findFormConfig("LoginForm", null);
FieldConfig field = form.getFieldConfig("password");
Iterator matchers = field.getMatchConfigs();
MatchConfig notEmpty = (MatchConfig)matchers.next();
assertEquals("notEmpty", notEmpty.getMatcherConfig().getId());
MatchConfig regexp = (MatchConfig)matchers.next();
assertEquals("regexp", regexp.getMatcherConfig().getId());
PropertyConfig pattern = (PropertyConfig)regexp.getPropertyConfigs().next();
assertEquals("pattern", pattern.getName());
assertEquals("^\\w*$", pattern.getValue());
}