@Test
public void testLocaleWithSessionNotRequest() {

when(request.getAttribute(FMT_LOCALE + ".request")).thenReturn(PT_BR);
when(session.getAttribute(FMT_LOCALE + ".session")).thenReturn(Locale.ENGLISH);
assertThat(localization.getLocale(), equalTo(PT_BR));
}