@Test
    void verifyNoProfile() {
        assertThrows(PreventedException.class, () -> {
            fbClient.setProfileCreator((callContext, sessionStore) -> Optional.empty());
            handler.authenticate(clientCredential, mock(Service.class));
        });
    }
Tests the {@link DelegatedClientAuthenticationHandler}.

@author Jerome Leleu
@since 4.1.0
support/cas-server-support-pac4j-oidc/src/test/java/org/apereo/cas/support/pac4j/authentication/handler/DelegatedClientAuthenticationHandlerTests.java