InMemoryConfiguration extends AbstractConfiguration { @Override public Map<String, Object> asMap() { return unmodifiableMap(key2value); } InMemoryConfiguration();  InMemoryConfiguration(final boolean readOnly);  InMemoryConfiguration(final Configuration configuration);  InMemoryConfiguration(final boolean readOnly, final Configuration configuration);  InMemoryConfiguration(final boolean readOnly, final Map<String, Object> map); @Override Map<String, Object> asMap(); @Override void define(final String key, final Object value); @Override Configuration getSubconfiguration(final String key); @Override void remove(final String key); @Override String toString(); @Override boolean equals(final Object obj);  }
@Test public void testAsMap() { final InMemoryConfiguration inMemoryConfiguration = new InMemoryConfiguration(); logger.debug("Map: {}", inMemoryConfiguration.asMap()); assertNotNull(inMemoryConfiguration.asMap()); }