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