DefaultConfigValueEvaluator implements ConfigValueEvaluator { @Override public Map<String, PropertyValue> evaluateRawValues(ConfigurationContext context) { Map<String, PropertyValue> result = new HashMap<>(); for (PropertySource propertySource : context.getPropertySources()) { for (PropertyValue val: propertySource.getProperties().values()) { if (val!=null && (val.getValueType() != PropertyValue.ValueType.VALUE || val.getValue() != null)){ result.put(val.getKey(), val); } } } return result; }  @Override PropertyValue evaluateRawValue(String key, ConfigurationContext context); @Override Map<String, PropertyValue> evaluateRawValues(ConfigurationContext context); @Override String toString();  }
@Test public void testEvaluateRawValues() { Configuration config = Configuration.current(); DefaultConfigValueEvaluator instance = new DefaultConfigValueEvaluator(); Map<String, PropertyValue> result = instance.evaluateRawValues(config.getContext()); assertThat(result).containsKey("confkey1"); assertThat(result.get("confkey1").getValue()).isEqualTo("javaconf-value1"); }