@Test
    public void testMissingProfileCreator() {
        val client = new HeaderClient(NAME, new SimpleTestTokenAuthenticator());
        client.setProfileCreator(null);
        TestsHelper.expectException(() -> client.getUserProfile(new CallContext(MockWebContext.create(), new MockSessionStore()),
            new TokenCredentials(TOKEN)), TechnicalException.class, "profileCreator cannot be null");
    }
This class tests the {@link HeaderClient} class.

@author Jerome Leleu
@since 1.8.0
pac4j-http/src/test/java/org/pac4j/http/client/direct/HeaderClientTests.java