component1.validate(facesContext);
// check for a error message
String min = (String) validator1.getVars().get(CommonsValidator.MIN_VARNAME);
String max = (String) validator1.getVars().get(CommonsValidator.MAX_VARNAME);
ValidatorAction va = CommonsValidator.getValidatorAction("floatRange");
assertNotNull("validator action", va);
String actualMsg = messages.getMessage(va.getMsg(),
facesContext.getViewRoot().getLocale(),
new Object[] {component1.getId(), min, max});
// check for a error message
checkMessage(actualMsg, component1);