public void testSetRefresh() {
long duration = 42;
TimeUnit unit = TimeUnit.SECONDS;
LocalCache<Object, Object> map =
makeLocalCache(createCacheBuilder().refreshAfterWrite(duration, unit));
assertEquals(unit.toNanos(duration), map.refreshNanos);
}
public void testSetRemovalListener() {
RemovalListener<Object, Object> testListener = TestingRemovalListeners.nullRemovalListener();
LocalCache<Object, Object> map =