@Override
    public void removeDataConnection(String name) {
        dataConnections.computeIfPresent(name, (k, v) -> {
            if (CONFIG == v.source) {
                throw new HazelcastException("Data connection '" + name + "' is configured via Config "
                        + "and can't be removed");
            }
            v.instance.release();
            return null;
        });
    }
@Test
    public void given_data_connection_in_config_when_remove_then_fail() {
        assertThatThrownBy(() -> dataConnectionService.removeDataConnection(TEST_CONFIG))
                .isInstanceOf(HazelcastException.class)
                .hasMessage("Data connection 'test-config' is configured via Config and can't be removed");
    }