@Override
    public ResultPartitionState getState() {
        return resultPartitionStateSupplier.get();
    }
@Test
    void testGetPartitionState() {
        for (ResultPartitionState state : ResultPartitionState.values()) {
            resultPartitionState.setResultPartitionState(state);
            assertThat(resultPartition.getState()).isEqualTo(state);
        }
    }