@Test
  public void doFileInfoObjectParsingTest() throws IOException {
    FileInfo fileInfo = new StoreFileInfo("/tmp", 1000L);
    ByteBuf byteBuf = Unpooled.buffer();
    fileInfo.writeTo(byteBuf);
    DataInputStream stream = new NettyByteBufDataInputStream(byteBuf);
    FileInfo transformedFileInfo = StoreFileInfo.readFrom(stream);

    assert transformedFileInfo != null;
    Assert.assertEquals(fileInfo.getFileName(), transformedFileInfo.getFileName());
    Assert.assertEquals(fileInfo.getFileSize(), transformedFileInfo.getFileSize());
    byteBuf.release();
  }
Test for undelete request and response.
@throws IOException
ambry-protocol/src/test/java/com/github/ambry/protocol/RequestResponseTest.java