@Test
  public void serdesObjectsTest() {
    Object[] objects = {1, "2", 3d};
    ByteArrayOutputStream baos = new ByteArrayOutputStream();
    DataOutputStream outputStream = new DataOutputStream(baos);
    SerializeUtils.serializeObjects(objects, outputStream);
    ByteBuffer buffer = ByteBuffer.wrap(baos.toByteArray());
    Assert.assertArrayEquals(objects, SerializeUtils.deserializeObjects(buffer));
  }
This method tests SerializeUtils.serializeObjects() and SerializeUtils.deserializeObjects()
iotdb-core/datanode/src/test/java/org/apache/iotdb/db/utils/SerializeUtilsTest.java