@Test
  public void testMergeReplicaSealStatus() {
    ReplicaSealStatus[] replicaSealStatuses = ReplicaSealStatus.values();
    for (ReplicaSealStatus replicaSealStatus1 : replicaSealStatuses) {
      for (ReplicaSealStatus replicaSealStatus2 : replicaSealStatuses) {
        ReplicaSealStatus mergedStatus =
            ReplicaSealStatus.mergeReplicaSealStatus(replicaSealStatus1, replicaSealStatus2);
        Assert.assertEquals(mergedStatus,
            replicaSealStatuses[Math.max(replicaSealStatus1.ordinal(), replicaSealStatus2.ordinal())]);
      }
    }
  }
Test {@link ReplicaSealStatus#mergeReplicaSealStatus(ReplicaSealStatus, ReplicaSealStatus)}.
ambry-api/src/test/java/com/github/ambry/clustermap/ReplicaSealStatusTest.java