@Test
public void testSetByte() throws Exception {

    byte input;
    byte[] data = new byte[20];
    input = 125;
    BitBufferHelper.setByte(data, input, 0, Byte.SIZE);
    Assert.assertTrue(data[0] == 125);
    input = 109;
    BitBufferHelper.setByte(data, input, 152, Byte.SIZE);
    Assert.assertTrue(data[19] == 109);
}