public void testConstructor() throws Exception {
ByteArrayBuffer buffer = new ByteArrayBuffer(16);
assertEquals(16, buffer.capacity());
assertEquals(0, buffer.length());
assertNotNull(buffer.buffer());
assertEquals(16, buffer.buffer().length);
try {
new ByteArrayBuffer(-1);
fail("IllegalArgumentException should have been thrown");
} catch (IllegalArgumentException ex) {