@Test
    public void testMissingProfileCreator() {
        val digestAuthClient = new DirectDigestAuthClient(new SimpleTestTokenAuthenticator(), null);
        TestsHelper.expectException(() -> digestAuthClient.getUserProfile(new CallContext(MockWebContext.create(), new MockSessionStore()),
                new DigestCredentials(TOKEN, HTTP_METHOD.POST.name(), null, null, null, null, null, null, null)), TechnicalException.class,
                "profileCreator cannot be null");
    }
This class tests the {@link DirectDigestAuthClient} class.

@author Mircea Carasel
@since 1.9.0
pac4j-http/src/test/java/org/pac4j/http/client/direct/DirectDigestAuthClientTests.java