@Override
    public void createOrReplaceSqlDataConnection(String name, String type, boolean shared, Map<String, String> options) {
        put(toConfig(name, type, shared, options), SQL);
    }
@Test
    public void create_via_service_should_fail_when_dynamic_config_exists() {
        instance.getConfig().addDataConnectionConfig(
                new DataConnectionConfig(TEST_DYNAMIC_CONFIG)
                        .setType(DUMMY_DATA_CONNECTION_TYPE)
                        .setProperty("customProperty", "value")
        );

        Map<String, String> map = createMap("customProperty", "value");
        assertThatThrownBy(() -> dataConnectionService.createOrReplaceSqlDataConnection(
                TEST_DYNAMIC_CONFIG, // same name as in config added above
                DUMMY_DATA_CONNECTION_TYPE,
                false,
                map
        )).isInstanceOf(HazelcastException.class)
                .hasMessage("Cannot replace a data connection created from configuration");
    }