### Question:
StorableProperties implements Storable<StorableProperties> { 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(" 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(); } } StorableProperties(Directory dir); @Override synchronized boolean loadExisting(); @Override synchronized void flush(); synchronized StorableProperties remove(String key); synchronized StorableProperties putAll(Map<String, String> externMap); synchronized StorableProperties put(String key, String val); synchronized StorableProperties put(String key, Object val); synchronized String get(String key); @Override synchronized void close(); @Override synchronized boolean isClosed(); @Override synchronized StorableProperties create(long size); @Override synchronized long getCapacity(); synchronized void putCurrentVersions(); synchronized String versionsToString(); synchronized boolean checkVersions(boolean silent); @Override synchronized String toString();  }### Answer:
@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")); }