HierachicalConfiguration extends AbstractConfiguration { @Override public Map<String, Object> asMap() { final Map<String, Object> parentMap = null != parent ? parent.asMap() : new HashMap<String, Object>(); parentMap.putAll(configuration.asMap()); return parentMap; } HierachicalConfiguration(final Configuration configuration); static Configuration create(final Configuration... configurations); @Override Configuration getSubconfiguration(final String key); @Override Object getValue(final String key); @Override Map<String, Object> asMap(); @Override void define(final String key, final Object value); @Override void remove(String key);  }
@Test public void testAsMap() { Configuration conf = new HierachicalConfiguration(new DummyConfiguration()); logger.debug("Map: {}", conf.asMap()); assertNotNull(conf.asMap()); }