map.put("alpha", validator);
map.put("beta", validator);
replay();
FieldValidatorSource source = new FieldValidatorSourceImpl(messagesSource, coercer, null, map);
try
{
source.createValidator(field, "foo", null);
unreachable();
}
catch (IllegalArgumentException ex)
{
assertEquals(ex.getMessage(), "Unknown validator type 'foo'. Configured validators are alpha, beta.");