WrappedPropertySource implements PropertySource { @Override public Map<String, PropertyValue> getProperties() { return delegate.getProperties(); } private  WrappedPropertySource(PropertySource delegate); private  WrappedPropertySource(PropertySource delegate, Integer ordinal); static WrappedPropertySource of(PropertySource ps); static WrappedPropertySource of(PropertySource ps, Integer ordinal); int getOrdinal(); void setOrdinal(Integer ordinal); void setDelegate(PropertySource delegate); @Override String getName(); @Override PropertyValue get(String key); @Override Map<String, PropertyValue> getProperties(); @Override boolean isScannable(); @Override ChangeSupport getChangeSupport(); @Override String getVersion(); @Override void addChangeListener(BiConsumer<Set<String>, PropertySource> l); @Override void removeChangeListener(BiConsumer<Set<String>, PropertySource> l); @Override void removeAllChangeListeners(); PropertySource getDelegate(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }
@Test public void testGetProperties() { WrappedPropertySource instance = WrappedPropertySource.of(new MockedWrappablePropertySource()); Map<String, PropertyValue> result = instance.getProperties(); assertThat(result).hasSize(1).containsKey("someKey"); }