public int getBufferIndex() {
        return bufferIndex;
    }
@Test
    void testGetBufferIndex() {
        Buffer buffer = BufferBuilderTestUtils.buildSomeBuffer(0);
        int bufferIndex = 0;
        int subpartitionId = 1;
        NettyPayload nettyPayload = NettyPayload.newBuffer(buffer, bufferIndex, subpartitionId);
        assertThat(nettyPayload.getBufferIndex()).isEqualTo(bufferIndex);
    }