@Test
  public void testBuildBlobId() throws Exception {
    BlobId blobId = new BlobId(version, referenceType, referenceDatacenterId, referenceAccountId, referenceContainerId,
        referencePartitionId, referenceIsEncrypted, referenceDataType);
    assertEquals("Wrong blobId version", version, getVersionFromBlobString(blobId.getID()));
    assertBlobIdFieldValues(version, blobId, referenceType, referenceDatacenterId, referenceAccountId,
        referenceContainerId, referencePartitionId, referenceIsEncrypted, referenceDataType);
  }
Tests blobId construction and assert that values are as expected.
ambry-commons/src/test/java/com/github/ambry/commons/BlobIdTest.java