@Test
public void capacity() throws BufferException {

    int expCapacity = 100;
    ByteBuffer buffer = new ByteBuffer(expCapacity);
    int actCapacity = buffer.capacity();
    Assert.assertEquals(expCapacity, actCapacity);
}