### Question:
DefaultCachedProperty extends PropertyWrapper implements CachedProperty { @Override public void refresh() { String before = value(); _value = super.value(); if (Objects.equal(before, _value)) return; if (_disableRefreshLog) return; _logger.info( String.format("Default cached property has been refreshed, key: %s, the value before refresh: %s, after refresh: %s", key(), before, _value)); } DefaultCachedProperty(Property property); @Override String value(); @Override void refresh();  }### Answer:
@Test public void testRefresh() { MyProperty mp = new MyProperty("k1", "v1"); DefaultCachedProperty dcp = new DefaultCachedProperty(mp); dcp.refresh(); }