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

@author Graham Leggett
@since 3.5.0
pac4j-http/src/test/java/org/pac4j/http/client/direct/DirectBearerAuthClientTests.java