PropertySourceChangeSupport { public ChangeSupport getChangeSupport() { return changeSupport; } PropertySourceChangeSupport(ChangeSupport changeSupport,
                                       PropertySource propertySource); ChangeSupport getChangeSupport(); String getVersion(); void addChangeListener(BiConsumer<Set<String>, PropertySource> l); void removeChangeListener(BiConsumer<Set<String>, PropertySource> l); void removeAllChangeListeners(); long load(Map<String, PropertyValue> properties); PropertyValue getValue(String key); Map<String, PropertyValue> getProperties(); void scheduleChangeMonitor(Supplier<Map<String, PropertyValue>> propertySupplier, long duration, TimeUnit timeUnit); void cancelSchedule();  }
@Test public void getChangeSupport() { PropertySource ps = BuildablePropertySource.builder().withName("test").build(); PropertySourceChangeSupport support = new PropertySourceChangeSupport(ChangeSupport.IMMUTABLE, ps); assertThat(ChangeSupport.IMMUTABLE).isEqualTo(support.getChangeSupport()); support = new PropertySourceChangeSupport(ChangeSupport.UNSUPPORTED, ps); assertThat(ChangeSupport.UNSUPPORTED).isEqualTo(support.getChangeSupport()); }