@Override
    public int totalSize() {
        return payload != null ? payload.length : 0;
    }
@Test
    public void totalSize_whenNullByteArray() {
        HeapData heapData = new HeapData(null);
        assertEquals(0, heapData.totalSize());
    }