DefaultPropertySourceSnapshot implements PropertySource, Serializable { @Override public String toString() { return "FrozenPropertySource{" + "name=" + name + ", ordinal=" + ordinal + ", properties=" + properties + ", frozenAt=" + frozenAt + '}'; } DefaultPropertySourceSnapshot(PropertySource propertySource);  DefaultPropertySourceSnapshot(PropertySource propertySource, Iterable<String> keys); static DefaultPropertySourceSnapshot of(PropertySource propertySource); static DefaultPropertySourceSnapshot of(PropertySource propertySource, Iterable<String> keys); Set<String> getKeys(); @Override String getName(); int getOrdinal(); long getFrozenAt(); @Override PropertyValue get(String key); @Override Map<String, PropertyValue> getProperties(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }
@Test public void testToString() throws Exception { PropertySource ps = DefaultPropertySourceSnapshot.of(MY_PS); String toString = ps.toString(); assertThat(toString).isNotNull(); assertThat(toString).contains("FrozenPropertySource"); assertThat(toString).contains(MY_PS.getName()); }