public SqlConfig setCatalogPersistenceEnabled(final boolean catalogPersistenceEnabled) {
        this.catalogPersistenceEnabled = catalogPersistenceEnabled;
        return this;
    }
@Test
    public void testSQLPersistenceEnabledWithoutEELicense() {
        final Config config = new Config();
        config.getSqlConfig().setCatalogPersistenceEnabled(true);

        assertThatThrownBy(() -> Hazelcast.newHazelcastInstance(config))
                .isInstanceOf(IllegalStateException.class)
                .hasMessageContaining("SQL Catalog Persistence requires Hazelcast Enterprise Edition");
    }