@Test
public void shouldThrowExceptionWhenUnableToParse() {

	when(request.getAttribute(LOCALE_KEY + ".request")).thenReturn("pt_br");
	
	try {
		converter.convert("a,10/06/2008/a/b/c", Date.class, bundle);
	} catch (ConversionError e) {
		assertThat(e.getMessage(), is(equalTo("a,10/06/2008/a/b/c is not a valid date.")));
	}
}