@BeforeEach
    void setupDatabase() throws Exception {
        MockitoAnnotations.openMocks(this).close();
        val jdbc = casProperties.getAuthn().getAttributeRepository().getJdbc();
        if (!jdbc.isEmpty()) {
            this.dataSource = JpaBeans.newDataSource(jdbc.getFirst());
            @Cleanup
            val connection = dataSource.getConnection();
            @Cleanup
            val statement = connection.createStatement();
            connection.setAutoCommit(true);
            prepareDatabaseTable(statement);
        }
    }
This is {@link BaseJdbcAttributeRepositoryTests}.

@author Misagh Moayyed
@since 5.3.0
support/cas-server-support-jdbc/src/test/java/org/apereo/cas/jdbc/BaseJdbcAttributeRepositoryTests.java