public void testEvictionOfBackupRegions() throws Exception
{
ReplicationListener replicationListener2 = ReplicationListener.getReplicationListener(cache2);
replicationListener2.expect(PutKeyValueCommand.class);
cache1.put(fqn, "k", "v");
replicationListener2.waitForReplicationToOccur();
assert cache1.peek(fqn, false, false) != null : "Node should exist";
assert cache2.peek(fqnTransformer.getBackupFqn(cache1.getLocalAddress(), fqn), false, false) != null : "Node should exist on backup";
// now wait for eviction to kick in - for up to 2 secs