DummyConfiguration extends AbstractConfiguration { @Override protected Object getValue(String key) { return null; }  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 testGetValue() { Configuration conf = DummyConfiguration.getInstance(); assertNull(conf.get(randomUUID().toString())); }