### Question:
MpscArrayBuffer extends Padding5 implements ArrayBufferReader<E> { public boolean write(final E message) { checkMessage(message); final int messageIndex = claim(); if (INSUFFICIENT_CAPACITY == messageIndex) { return false; } final long offset = calculateMessageOffset(messageIndex); putMessageOrdered(offset, message); return true; } @SuppressWarnings("unchecked")  MpscArrayBuffer(final int capacity); int capacity(); boolean write(final E message); int read(final Consumer<E> handler, final int limit); long nextId();  }### Answer:
@Theory @Test(expected = IllegalArgumentException.class) public void shouldThrowExceptionWhenMessageIsNull(final int capacity) { buffer = new MpscArrayBuffer<>(capacity); buffer.write(null); }