@Test
@FixFor( "MODE-2195" )
public void shouldAutomaticallySetTheBufferSizeToTheNextPowerOf2() throws Exception {

    Executor executor = Executors.newCachedThreadPool();
    RingBuffer<Long, Consumer<Long>> ringBuffer = RingBufferBuilder.withSingleProducer(executor, Long.class).ofSize(5)
                                                                   .garbageCollect(false).build();    
    assertEquals(8, ringBuffer.getBufferSize());
    ringBuffer = RingBufferBuilder.withSingleProducer(executor, Long.class).ofSize(1023).garbageCollect(false).build();
    assertEquals(1024, ringBuffer.getBufferSize());
}