@Test
public void resolveLocaleContextWithFromHttpHeader() throws Exception {

    DataprepLocaleContextResolver resolver = new DataprepLocaleContextResolver(null);
    when(request.getHeader(eq(HttpHeaders.ACCEPT_LANGUAGE))).thenReturn(Locale.JAPANESE.toLanguageTag());
    when(request.getLocales()).thenReturn(Collections.enumeration(Arrays.asList(Locale.JAPANESE, Locale.US)));
    Locale locale = resolver.resolveLocale(request);
    assertNotNull(locale);
    assertEquals(Locale.JAPANESE, locale);
}