}
@Test
public void resolveLocaleShouldReturnRequestLocaleIfUserAnonymous() {
JcLocaleResolver localeResolver = new JcLocaleResolver(userService);
AnonymousUser user = new AnonymousUser();
user.setLanguage(Language.SPANISH);
Locale defaultLocale = Language.ENGLISH.getLocale();
when(userService.getCurrentUser()).thenReturn(user);
when(request.getLocale()).thenReturn(defaultLocale);
Locale result = localeResolver.resolveLocale(request);