@Test
  public void doLogInfoParsingTest() throws IOException {
    LogInfo logInfo = new StoreLogInfo(new StoreFileInfo("0_index", 1000L),
        new ArrayList<>(Collections.singletonList(new StoreFileInfo("0_1_index", 1010L))),
        new ArrayList<>(Collections.singletonList(new StoreFileInfo("1_1_bloom", 1020L))));

    ByteBuf byteBuf = Unpooled.buffer();
    logInfo.writeTo(byteBuf);
    DataInputStream stream = new NettyByteBufDataInputStream(byteBuf);
    LogInfo transformedLogInfo = StoreLogInfo.readFrom(stream);

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