@Override
    public boolean replicate(ReplicateContext replicateContext) {
      replicateCount.incrementAndGet();
      replicatedEntries.addAll(replicateContext.getEntries());

      return super.replicate(replicateContext);
    }
Custom replication endpoint to keep track of replication status for tests.
hbase-server/src/test/java/org/apache/hadoop/hbase/replication/TestReplicationBase.java