@Override
    public void onPartitionBecomeOfflineFromInactive(String partitionName) {
      super.onPartitionBecomeOfflineFromInactive(partitionName);
      if (listenerExecutionLatch != null) {
        listenerExecutionLatch.countDown();
      }
    }
A class extends implementation of {@link ReplicationManager.PartitionStateChangeListenerImpl} to help manipulate
ordering of threads' execution.
ambry-replication/src/test/java/com/github/ambry/replication/MockReplicationManager.java