@Test
public void testGetBytes() throws Exception {

    byte[] data = { 108, 96, 125, -112, 5, 6, 108, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22 };
    Assert.assertTrue(BitBufferHelper.getBits(data, 0, 8)[0] == 108);
    Assert.assertTrue(BitBufferHelper.getBits(data, 8, 8)[0] == 96);
    byte[] bits = BitBufferHelper.getBits(data, 0, 10);
    Assert.assertTrue(bits[0] == 1);
    Assert.assertTrue(bits[1] == -79);
    bits = BitBufferHelper.getBits(data, 3, 8);
    Assert.assertTrue(bits[0] == 99);
    // Assert.assertTrue(x[1] == 97);
}