public ShuffleDescriptor getShuffleDescriptor() {
        return shuffleDescriptor;
    }
@Test
    void testSerializationWithNettyShuffleDescriptor() throws IOException {
        ShuffleDescriptor shuffleDescriptor =
                new NettyShuffleDescriptor(
                        producerLocation,
                        new NetworkPartitionConnectionInfo(address, connectionIndex),
                        resultPartitionID);

        ResultPartitionDeploymentDescriptor copy =
                createCopyAndVerifyResultPartitionDeploymentDescriptor(shuffleDescriptor);

        assertThat(copy.getShuffleDescriptor()).isInstanceOf(NettyShuffleDescriptor.class);
        NettyShuffleDescriptor shuffleDescriptorCopy =
                (NettyShuffleDescriptor) copy.getShuffleDescriptor();
        assertThat(resultPartitionID).isEqualTo(shuffleDescriptorCopy.getResultPartitionID());
        assertThat(shuffleDescriptorCopy.isUnknown()).isFalse();
        assertThat(shuffleDescriptorCopy.isLocalTo(producerLocation)).isTrue();
        assertThat(connectionID).isEqualTo(shuffleDescriptorCopy.getConnectionId());
    }