public void testIdleExpiryInReplace() throws InterruptedException {
Cache cache = cm.getCache();
long idleTime = 10000;
assert cache.get("k") == null;
assert cache.replace("k", "v", -1, MILLISECONDS, idleTime, MILLISECONDS) == null;
assert cache.get("k") == null;
cache.put("k", "v-old");
assert cache.get("k").equals("v-old");
assert cache.replace("k", "v", -1, MILLISECONDS, idleTime, MILLISECONDS) != null;
assertEquals(cache.get("k"), "v");