SystemPropertySource extends BasePropertySource { @Override public Map<String, PropertyValue> getProperties() { if(isDisabled()){ return Collections.emptyMap(); } reload(); return cachedProperties.getProperties(); } SystemPropertySource();  SystemPropertySource(int ordinal); @Override PropertyValue get(String key); void reload(); @Override Map<String, PropertyValue> getProperties(); String getVersion(); @Override ChangeSupport getChangeSupport(); static final int DEFAULT_ORDINAL; }
@Test public void testGetProperties() throws Exception { checkWithSystemProperties(testPropertySource.getProperties()); System.setProperty("test", "myTestVal"); checkWithSystemProperties(testPropertySource.getProperties()); System.clearProperty("test"); }