@Override
  public String getDataType() {
    if (block.getDataType() != null) {
      return block.getDataType();
    }
    if (!isSerialized()) {
      // byte array
      if (isCompressed()) {
        return "compressed byte[" + ((OffHeapStoredObject) block).getDataSize() + "]";
      } else {
        return "byte[" + ((OffHeapStoredObject) block).getDataSize() + "]";
      }
    } else if (isCompressed()) {
      return "compressed object of size " + ((OffHeapStoredObject) block).getDataSize();
    }
    // Object obj = EntryEventImpl.deserialize(((Chunk)this.block).getRawBytes());
    byte[] bytes = ((OffHeapStoredObject) block).getRawBytes();
    return DataType.getDataType(bytes);
  }
Basic implementation of MemoryBlock for test validation only.
geode-core/src/main/java/org/apache/geode/internal/offheap/MemoryBlockNode.java