static InitWriterConfig fromMap(Map<String, String> map) {
        Map<String, String> envMap = new HashMap<>(map);
        envMap.keySet().retainAll(InitWriterConfig.keyNames());

        Map<String, Object> generatedMap = ConfigParameter.define(envMap, CONFIG_VALUES);

        return new InitWriterConfig(generatedMap);
    }
@Test
    public void testFromMapMissingNodeNameThrows() {
        Map<String, String> envVars = new HashMap<>(ENV_VARS);
        envVars.remove(InitWriterConfig.NODE_NAME.key());

        assertThrows(InvalidConfigurationException.class, () -> InitWriterConfig.fromMap(envVars));
    }