@Test(dataProvider = "parse_client_failure_data")
public void parse_client_failure(Class type, String input, String expectedMessage)
{
Translator t = source.getByType(type);
try
{
t.parseClient(input, messagesSource.getValidationMessages(Locale.ENGLISH));
unreachable();
}
catch (ValidationException ex)
{
assertEquals(ex.getMessage(), expectedMessage);