public int size() {
        return producer.size();
    }
@Test
    public void shouldNotOverrunBuffer() {
        for (int i = 0; i < REQUESTED_CAPACITY; i++) {
            assertTrue(producer.claim());
            assertTrue(producer.commit());
        }

        for (int i = REQUESTED_CAPACITY; i < MAXIMUM_CAPACITY; i++) {
            // Unknown what happens here.
            producer.claim();
            producer.commit();
        }

        assertFalse(producer.claim());
        assertTrue(channel.size() >= REQUESTED_CAPACITY);
        assertTrue(channel.size() <= MAXIMUM_CAPACITY);
    }