DummyConfiguration extends AbstractConfiguration { @SuppressWarnings("unchecked") @Override public Map<String, Object> asMap() { return Collections.EMPTY_MAP; }  static Configuration getInstance(); @SuppressWarnings("unchecked") @Override Map<String, Object> asMap(); @Override void define(final String key, final Object value); @Override void remove(final String key);  }
@Test public void testAsMap() { Configuration conf = DummyConfiguration.getInstance(); assertEquals(Collections.EMPTY_MAP, conf.asMap()); }