@Test
    public void testBuildUnauthenticated401WithoutHeader() {
        final WebContext context = MockWebContext.create();
        val action = HttpActionHelper.buildUnauthenticatedAction(context);
        assertTrue(action instanceof UnauthorizedAction);
        assertEquals("Bearer realm=\"pac4j\"", context.getResponseHeader(HttpConstants.AUTHENTICATE_HEADER).get());
    }
Tests {@link HttpActionHelper}.

@author Jerome LELEU
@since 4.0.0
pac4j-core/src/test/java/org/pac4j/core/util/HttpActionHelperTest.java