public void done() {
        done.compareAndSet(null, NORMAL_COMPLETION);
    }
@Test
    public void when_doneCalledTwice_then_secondIgnored() {
        initProducer(false);
        producer.done();
        producer.done();

        assertThat(iterator.hasNext()).isFalse();
    }