@Test
  public void blobIndexAdminRequestTest() throws IOException {
    MockClusterMap clusterMap = new MockClusterMap();
    int correlationId = 1;
    String clientId = "ambry-blobindexer";
    BlobId blobId = new BlobId(CommonTestUtils.getCurrentBlobIdVersion(), BlobId.BlobIdType.NATIVE,
        ClusterMap.UNKNOWN_DATACENTER_ID, Utils.getRandomShort(TestUtils.RANDOM),
        Utils.getRandomShort(TestUtils.RANDOM),
        clusterMap.getWritablePartitionIds(MockClusterMap.DEFAULT_PARTITION_CLASS).get(0), false,
        BlobId.BlobDataType.DATACHUNK);
    AdminRequest adminRequest = new AdminRequest(AdminRequestOrResponseType.BlobIndex, null, correlationId, clientId);
    BlobIndexAdminRequest blobIndexRequest = new BlobIndexAdminRequest(blobId, adminRequest);
    DataInputStream requestStream = serAndPrepForRead(blobIndexRequest, -1, true);
    AdminRequest deserializedAdminRequest =
        deserAdminRequestAndVerify(requestStream, clusterMap, correlationId, clientId,
            AdminRequestOrResponseType.BlobIndex, null);
    BlobIndexAdminRequest deserilized =
        BlobIndexAdminRequest.readFrom(requestStream, deserializedAdminRequest, new BlobIdFactory(clusterMap));
    Assert.assertEquals(blobId.getID(), deserilized.getStoreKey().getID());
    blobIndexRequest.release();
  }
Tests the ser/de of {@link BlobIndexAdminRequest} and checks for equality of fields with reference data.
@throws IOException
ambry-protocol/src/test/java/com/github/ambry/protocol/RequestResponseTest.java