@Test
  public void serdesObjectTest() {
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
    DataOutputStream outputStream = new DataOutputStream(baos);
    SerializeUtils.serializeObject(1, outputStream);
    ByteBuffer buffer = ByteBuffer.wrap(baos.toByteArray());
    Assert.assertEquals(1, SerializeUtils.deserializeObject(buffer));
  }
This method tests SerializeUtils.serializeObject() and SerializeUtils.deserializeObject()
iotdb-core/datanode/src/test/java/org/apache/iotdb/db/utils/SerializeUtilsTest.java