@Test
  public void healthCheckAdminRequestTest() throws IOException {
    MockClusterMap clusterMap = new MockClusterMap();
    int correlationId = 1;
    String clientId = "ambry-healthchecker";
    AdminRequest adminRequest = new AdminRequest(AdminRequestOrResponseType.HealthCheck, null, correlationId, clientId);
    HealthCheckAdminRequest checkRequest = new HealthCheckAdminRequest(adminRequest);
    DataInputStream requestStream = serAndPrepForRead(checkRequest, -1, true);
    AdminRequest deserializedAdminRequest =
        deserAdminRequestAndVerify(requestStream, clusterMap, correlationId, clientId,
            AdminRequestOrResponseType.HealthCheck, null);
    HealthCheckAdminRequest.readFrom(requestStream, deserializedAdminRequest);
    checkRequest.release();
  }
Tests the ser/de of {@link ReplicationControlAdminRequest} and checks for equality of fields with reference data.
@throws IOException
ambry-protocol/src/test/java/com/github/ambry/protocol/RequestResponseTest.java