@Test
public void shouldThrowExceptionWhenUnableToParse() {

	when(request.getAttribute("javax.servlet.jsp.jstl.fmt.locale.request"))
		.thenReturn("pt_br");
	
	try {
		converter.convert("a,10/06/2008/a/b/c", DateMidnight.class, bundle);
	} catch (ConversionError e) {
		assertThat(e.getMessage(), is(equalTo("a,10/06/2008/a/b/c is not a valid datetime.")));
	}
}