static void loadProperties(Map<String, String> map, Reader tmpReader) throws IOException {
        BufferedReader reader = new BufferedReader(tmpReader);
        String line;
        try {
            while ((line = reader.readLine()) != null) {
                if (line.startsWith("//") || line.startsWith("#")) {
                    continue;
                }

                if (Helper.isEmpty(line)) {
                    continue;
                }

                int index = line.indexOf("=");
                if (index < 0) {
                    LOGGER.warn("Skipping configuration at line:" + line);
                    continue;
                }

                String field = line.substring(0, index);
                String value = line.substring(index + 1);
                map.put(field.trim(), value.trim());
            }
        } finally {
            reader.close();
        }
    }
@Test
    public void testLoadProperties() throws IOException {
        Map<String, String> map = new HashMap<>();
        StorableProperties.loadProperties(map, new StringReader("blup=test\n blup2 = xy"));
        assertEquals("test", map.get("blup"));
        assertEquals("xy", map.get("blup2"));
    }