@Test
public void occurrencesWithByte() throws BufferException {

    ByteBuffer buffer = new ByteBuffer(TEST_BYTES1);
    Assert.assertEquals(3, buffer.occurrences((byte)'L'));
    Assert.assertEquals(1, buffer.occurrences((byte)'H'));
    Assert.assertEquals(0, buffer.occurrences((byte)'A'));
}