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 validRequesterIdIsPresent() throws SamlSessionException, SharedServiceClientException {
        RequesterID requesterID = OpenSAMLUtils.buildSAMLObject(RequesterID.class);
        requesterID.setRequesterID("urn:nl-eid-gdi:1.0:BVD:00000004003214345001:entities:9000");

        Scoping scoping = OpenSAMLUtils.buildSAMLObject(Scoping.class);
        scoping.getRequesterIDs().add(requesterID);

        authnRequest.setScoping(scoping);
        samlSessionService.initializeSession(authenticationRequest, bindingContext);

        assertEquals("urn:nl-eid-gdi:1.0:BVD:00000004003214345001:entities:9000", authenticationRequest.getSamlSession().getRequesterId());
    }