public void testEnsureCapacity() throws Exception {
ByteArrayBuffer buffer = new ByteArrayBuffer(4);
buffer.ensureCapacity(2);
assertEquals(4, buffer.capacity());
buffer.ensureCapacity(8);
assertEquals(8, buffer.capacity());
}
public void testIndexOf() throws Exception {
final byte COLON = (byte) ':';