SystemPropertiesConfiguration extends AbstractConfiguration implements Configuration { @SuppressWarnings("unchecked") @Override public Map<String, Object> asMap() { final Map<?, ?> map = getProperties(); return unmodifiableMap(new HashMap<String, Object>((Map<String, String>) map)); }  @SuppressWarnings("unchecked") @Override Map<String, Object> asMap(); @Override void define(final String key, final Object value); @Override Configuration getSubconfiguration(final String key); @Override Object getValue(final String key); @Override void remove(final String key);  }
@Test public void testAsMap() { final SystemPropertiesConfiguration configuration = new SystemPropertiesConfiguration(); logger.debug("Map: {}", configuration.asMap()); assertNotNull(configuration.asMap()); }