public Connection getConnection() {
        return getConfig().isShared() ? pooledConnection() : singleUseConnection();
    }
@Test
    public void shared_connection_should_be_initialized_lazy() {
        jdbcDataConnection = new JdbcDataConnection(new DataConnectionConfig()
                .setName(TEST_NAME)
                .setProperty("jdbcUrl", "invalid-jdbc-url")
                .setShared(true));

        assertThatThrownBy(() -> jdbcDataConnection.getConnection())
                .hasRootCauseInstanceOf(SQLException.class)
                .hasRootCauseMessage("No suitable driver");
    }