@Override
    public Optional<Decision> onBufferConsumed(BufferIndexAndChannel consumedBuffer) {
        return Optional.of(Decision.builder().addBufferToRelease(consumedBuffer).build());
    }
@Test
    void testOnBufferConsumed() {
        BufferIndexAndChannel bufferIndexAndChannel = new BufferIndexAndChannel(0, 0);
        Optional<Decision> consumedDecision = spillStrategy.onBufferConsumed(bufferIndexAndChannel);
        assertThat(consumedDecision)
                .hasValueSatisfying(
                        (decision -> {
                            assertThat(decision.getBufferToRelease())
                                    .hasSize(1)
                                    .hasEntrySatisfying(
                                            0,
                                            (list) ->
                                                    assertThat(list)
                                                            .containsExactly(
                                                                    bufferIndexAndChannel));
                            assertThat(decision.getBufferToSpill()).isEmpty();
                        }));
    }