@Test
public void scheduleChangeMonitor() throws InterruptedException {

    PropertySource ps = BuildablePropertySource.builder().withName("test")
            .withSimpleProperty("foo", "bar").build();
    PropertySourceChangeSupport support = new PropertySourceChangeSupport(ChangeSupport.SUPPORTED, ps);
    support.load(ps.getProperties());
    String v1 = support.getVersion();
    support.scheduleChangeMonitor(() -> Collections.emptyMap(), 500, TimeUnit.MILLISECONDS);
    Thread.sleep(600L);
    String v2 = support.getVersion();
    assertThat(v1).isNotEqualTo(v2);
}