TreeCache cache1 = createUnstartedCache( false );
TreeCache cache2 = createUnstartedCache( false );
cache1.setCacheMode(TreeCache.INVALIDATION_ASYNC);
cache2.setCacheMode(TreeCache.INVALIDATION_ASYNC);
cache1.startService();
cache2.startService();
Fqn fqn = Fqn.fromString("/a/b");
cache1.put(fqn, "key", "value");
TestingUtil.sleepThread(500); // give it time to broadcast the evict call
// test that this has NOT replicated, but rather has been invalidated: