public OpenIdSession startSession(@Valid AuthenticateRequest params, String jwksUri, Long legacyWebserviceId, String serviceName) {
        OpenIdSession session = new OpenIdSession();
        session.setJwksUri(jwksUri);
        session.setClientId(params.getClientId());
        session.setResponseType(params.getResponseType());
        session.setScope(params.getScope());
        session.setRedirectUri(params.getRedirectUri());
        session.setState(params.getState());
        session.setNonce(params.getNonce());
        session.setCodeChallenge(params.getCodeChallenge());
        session.setCodeChallengeMethod(params.getCodeChallengeMethod());
        session.setCode(UUID.randomUUID().toString());
        session.setLegacyWebserviceId(legacyWebserviceId);
        session.setServiceName(serviceName);

        return session;
    }
@Test
    void startSessionTest() {
        AuthenticateRequest authenticateRequest = new AuthenticateRequest();

        OpenIdSession openIdSession = openIdService.startSession(authenticateRequest, "jwksUri", 1L, "serviceName");

        assertEquals("jwksUri", openIdSession.getJwksUri());
        assertEquals("serviceName", openIdSession.getServiceName());
        assertEquals(1L, openIdSession.getLegacyWebserviceId());
    }