DTConfiguration implements Iterable<Map.Entry<String, String>> { public void setInternal(String key, String value) { ValueEntry valueEntry = map.get(key); if (valueEntry != null) { valueEntry.value = value; } else { valueEntry = new ValueEntry(); valueEntry.scope = isLocalKey(key) ? Scope.LOCAL : Scope.TRANSIENT; valueEntry.value = value; map.put(key, valueEntry); } }  @Override Iterator<Entry<String, String>> iterator(); void writeToFile(File file, Scope scope, String comment); void writeToFile(File file, String comment); void loadFile(File file, Scope defaultScope); void loadFile(File file); boolean containsKey(String key); String get(String key); String getDescription(String key); Scope getScope(String key); Integer getInteger(String key); Long getLong(String key); Float getFloat(String key); Double getDouble(String key); void remove(String key); void setInternal(String key, String value); void set(String key, String value, Scope scope, String description); static boolean isLocalKey(String key); JSONObject toJSONObject(); JSONObject toJSONObject(String key);  }
@Test public void testSetInternal() { DTConfiguration config = new DTConfiguration(); config.setInternal("test-key", "test-value"); Assert.assertEquals("test-value", config.get("test-key")); config.setInternal("test-key", "test-value-2"); Assert.assertEquals("test-value-2", config.get("test-key")); }