public DataConnectionConfig load(DataConnectionConfig dataConnectionConfig) {
        // Make a copy to preserve the original configuration
        DataConnectionConfig loadedConfig = new DataConnectionConfig(dataConnectionConfig);

        // Try XML file first
        if (loadConfig(loadedConfig, HazelcastDataConnection.CLIENT_XML_PATH, HazelcastDataConnection.CLIENT_XML)) {
            return loadedConfig;
        }
        // Try YML file
        loadConfig(loadedConfig, HazelcastDataConnection.CLIENT_YML_PATH, HazelcastDataConnection.CLIENT_YML);
        return loadedConfig;
    }
@Test
    public void testNothingLoaded() {
        DataConnectionConfig dataConnectionConfig = new DataConnectionConfig();
        dataConnectionConfig.setProperty(HazelcastDataConnection.CLIENT_XML, "xml");

        HazelcastDataConnectionConfigLoader loader = new HazelcastDataConnectionConfigLoader();
        DataConnectionConfig loadedConfig = loader.load(dataConnectionConfig);

        assertThat(loadedConfig.getProperty(HazelcastDataConnection.CLIENT_XML)).isEqualTo("xml");
        assertNull(loadedConfig.getProperty(HazelcastDataConnection.CLIENT_YML));
    }