private void addIgnoredExceptionsForSenderInUseWentDown() {
    addIgnoredException(
        "Exception org.apache.geode.cache.client.internal.pooling.ConnectionDestroyedException in sendBatch. Retrying");
    addIgnoredException(
        "Exception org.apache.geode.cache.client.ServerConnectivityException in sendBatch. Retrying");
    addIgnoredException("DistributedSystemDisconnectedException");
    addIgnoredException("org.apache.geode.distributed.PoolCancelledException");
    addIgnoredException(
        "Exception when running wan-copy region command: ");
    addIgnoredException(
        "Exception when running wan-copy region command: java.util.concurrent.ExecutionException: org.apache.geode.cache.EntryDestroyedException");
    addIgnoredException(
        "Error closing the connection used to wan-copy region entries");
  }
Scenario with 3 WAN sites: "A", "B" and "C".
Initially, no replication is configured between sites.
Several entries are put in WAN site "A".

The following gateway senders are created and started:
- In "A" site: to replicate region entries to "B" site. Sender called "B".
- In "B" site: to replicate region entries to "C" site. Sender called "C".
(Replication is as follows: A -> B -> C)

The "wan-copy region" command is run from "A" site passing sender "B"
in a different thread. The maxRate is set to a very low value so that there is
time to cancel it before it finishes.

The "wan-copy region" command with the cancel option
is run from "A" site passing sender "B".

It must be verified that the command is canceled.
Also, the output of the command must show
the number of entries copied before the command was canceled.
geode-wan/src/distributedTest/java/org/apache/geode/cache/wan/internal/cli/commands/WanCopyRegionCommandDistributedTest.java