CompatibleConfigFileFormat implements ConfigFile { @Override public synchronized void writeValue(String key, String value) throws IOException { final Map<String, String> values = this.getMap(); values.put(key, value); mapper.writeValue(configFile, values); } CompatibleConfigFileFormat(ObjectMapper objectMapper, File configFile); @Override synchronized void writeValue(String key, String value); @Override String readValue(String key); @Override boolean contains(String key); @Override synchronized String readValue(String key, String defaultValue); @Override synchronized void deleteValue(String key);  }
@Test public void testWriteValue() { }