@Override
    public synchronized UUID getPeerUUID() {
      return failing ? null : super.getPeerUUID();
    }
Bad Endpoint with failing connection to peer on demand.
hbase-server/src/test/java/org/apache/hadoop/hbase/replication/regionserver/TestReplicationSource.java