@Test
public void shouldUseTheDefaultLocale() throws ParseException {

	when(request.getAttribute(LOCALE_KEY + ".request")).thenReturn(null);
	when(request.getSession()).thenReturn(session);
	when(session.getAttribute(LOCALE_KEY + ".session")). thenReturn(null);
	when(context.getAttribute(LOCALE_KEY + ".application")). thenReturn(null);
	when(context.getInitParameter(LOCALE_KEY)). thenReturn(null);
	when(request.getLocale()).thenReturn(null);
	
	Date date = new SimpleDateFormat("dd/MM/yyyy").parse("10/05/2010");
	Calendar cal = new GregorianCalendar();
	cal.setTime(date);
	String formattedToday = DateFormat.getDateInstance(DateFormat.SHORT).format(date);
	assertThat(converter.convert(formattedToday, Calendar.class, bundle), is(equalTo(cal)));
}