String rootStr = "/test/testdata";
for (int i = 0; i < 10; i++)
{
String str = rootStr + i;
Fqn fqn = Fqn.fromString(str);
cache.put(fqn, str, str);
}
// wait for an eviction
TestingUtil.sleepThread(2 * (wakeupIntervalMillis + testRegionTTLMillis));
String val = (String) cache.get(rootStr + "3", rootStr + "3");
assertNull("Node should be empty ", val);
// reinsert the elements
for (int i = 0; i < 10; i++)
{
String str = rootStr + i;
Fqn fqn = Fqn.fromString(str);
cache.put(fqn, str, str);
}
// clear the root
cache.removeNode(Fqn.ROOT);