private void deserializeBlobIdAndAssert(short version, String srcBlobIdStr) throws Exception {
    List<BlobId> blobIds = new ArrayList<>();
    blobIds.add(new BlobId(srcBlobIdStr, referenceClusterMap));
    blobIds.add(new BlobId(getStreamFromBase64(srcBlobIdStr), referenceClusterMap));
    blobIds.add(new BlobId(getStreamFromBase64(srcBlobIdStr + "EXTRA"), referenceClusterMap));
    for (BlobId blobId : blobIds) {
      assertEquals("Wrong base-64 ID in blobId: " + blobId, srcBlobIdStr, blobId.getID());
      assertEquals("Wrong blobId version", version, getVersionFromBlobString(blobId.getID()));
      assertBlobIdFieldValues(version, blobId, referenceType, referenceDatacenterId, referenceAccountId,
          referenceContainerId, referencePartitionId, referenceIsEncrypted, referenceDataType);
    }
  }
Deserializes BlobId string and assert the resulted BlobId object.
@param version The version of BlobId.
@param srcBlobIdStr The string to deserialize.
@throws Exception Any unexpected exception.
ambry-commons/src/test/java/com/github/ambry/commons/BlobIdTest.java