JSONObject validations = support.getValidations();
// Tip-toe around the fact that the order of the keys is JDK specific.
assertEquals(CollectionFactory.newSet(validations.keys()), CollectionFactory.newSet("fred", "barney"));
assertEquals(validations.get("fred").toString(), "[[\"maxlength\",\"Up to 10 characters\",10]]");
assertEquals(validations.get("barney").toString(),
"[[\"required\",\"Who can live without Barney?\"],[\"email\",\"You know, an e-mail address.\"]]");