public void initializeSession(AuthenticationRequest authenticationRequest, SAMLBindingContext bindingContext) throws SamlSessionException, SharedServiceClientException {
        final String httpSessionId = authenticationRequest.getRequest().getSession().getId();

        if (authenticationRequest.getFederationName() != null) {
            findOrInitializeFederationSession(authenticationRequest, httpSessionId);
        }

        findOrInitializeSamlSession(authenticationRequest, httpSessionId, bindingContext);
    }
@Test
    public void forceLoginWhenMinimumAuthenticationLevelIsSubstantieelTest() throws SamlSessionException, SharedServiceClientException {
        FederationSession federationSession = new FederationSession(600);
        federationSession.setAuthLevel(25);
        authenticationRequest.setMinimumRequestedAuthLevel(25);
        authenticationRequest.setFederationName("federationName");
        Optional<FederationSession> optionalFederationSession = Optional.of(federationSession);

        when(federationSessionRepositoryMock.findByHttpSessionIdAndFederationName(anyString(), anyString())).thenReturn(optionalFederationSession);
        when(sharedServiceClientMock.getSSConfigLong(anyString())).thenReturn(10L);

        samlSessionService.initializeSession(authenticationRequest, bindingContext);

        assertTrue(authenticationRequest.getAuthnRequest().isForceAuthn());
    }