@Test
public void testAlignRead() throws Exception {
BitStream bs = new BitStream(new byte[] { 1, 1 }, 0, Byte.SIZE * 2);
assertEquals(1, bs.readBit());
bs.alignRead();
assertEquals(1, bs.readBit());
assertEquals(7, bs.available());
assertEquals(2, bs.bytes());
}