@Test
public void isFull() throws BufferException {

    ByteBuffer buffer = new ByteBuffer(1);
    Assert.assertTrue(buffer.isEmpty());
    // fill it with some data
    Assert.assertFalse(buffer.isFull());
    buffer.add((byte)10);
    Assert.assertTrue(buffer.isFull());
}