OcelotI18nServices { public Locale getUserLocale() { logger.debug("Get locale from OcelotServices"); return ocelotContext.getLocale(); }  Locale getUserLocale(); String getLocalizedMessage(String bundleName, String entry, Object[] args);  }
@Test public void testGetUserLocale() { System.out.println("getUserLocale"); Map<String, Object> map = new HashMap<>(); Locale expResult = Locale.FRANCE; when(ocelotContext.getLocale()).thenReturn(expResult); Locale result = ocelotI18nServices.getUserLocale(); assertThat(result).isEqualTo(expResult); }