private void internalTestGetHeader(final String key) {
        Set<String> headerNames = new HashSet<>();
        headerNames.add(KEY);
        when(request.getHeaderNames()).thenReturn(Collections.enumeration(headerNames));
        when(request.getHeader(KEY)).thenReturn(VALUE);
        WebContext context = new JEEContext(request, response);
        assertEquals(VALUE, context.getRequestHeader(key).get());
    }
Tests {@link JEEContext}.

@author Jerome Leleu
@since 3.0.0
pac4j-javaee/src/test/java/org/pac4j/jee/context/JEEContextTest.java