@Bean
        public InitializingBean createTables(
            @Qualifier("pac4jDelegatedClientJdbcTemplate") final JdbcOperations pac4jDelegatedClientJdbcTemplate,
            @Qualifier("pac4jDelegatedClientDataSource") final DataSource pac4jDelegatedClientDataSource) {
            return () -> {
                val create = """
                    CREATE TABLE %s (
                        id INTEGER IDENTITY PRIMARY KEY,
                        type VARCHAR(250),
                        index INTEGER,
                        name VARCHAR(250),
                        value VARCHAR(250)
                    );
                    """.formatted(JdbcDelegatedIdentityProviderFactory.JdbcIdentityProviderEntity.TABLE_NAME).stripIndent().stripLeading();
                pac4jDelegatedClientJdbcTemplate.execute(create);
                
                val insert = """
                    INSERT INTO $table (type, index, name, value) VALUES ('cas', 0, 'login-url', 'https://cas.example.org');
                    INSERT INTO $table (type, index, name, value) VALUES ('cas', 0, 'protocol', 'CAS20');
                    
                    INSERT INTO $table (type, index, name, value) VALUES ('saml', 0, 'client-name', 'SAML2Client');
                    
                    INSERT INTO $table (type, index, name, value) VALUES ('oidc', 0, 'generic.client-name', 'OidcClient');
                    
                    INSERT INTO $table (type, index, name, value) VALUES ('oauth2', 0, 'client-name', 'OAuth2Client');
                    
                    """.replace("$table", JdbcDelegatedIdentityProviderFactory.JdbcIdentityProviderEntity.TABLE_NAME)
                    .stripIndent().stripLeading();
                pac4jDelegatedClientJdbcTemplate.execute(insert);

            };
        }
This is {@link JdbcDelegatedIdentityProviderFactoryTests}.

@author Misagh Moayyed
@since 7.2.0
support/cas-server-support-pac4j-webflow/src/test/java/org/apereo/cas/support/pac4j/clients/JdbcDelegatedIdentityProviderFactoryTests.java