}
@Test
public void testSkipRead() throws Exception {
byte[] data = new byte[] { 1, 1 };
BitStream bs0 = new BitStream(data, 0, Byte.SIZE * data.length);
BitStream bs1 = new BitStream(data, 0, Byte.SIZE * data.length);
assertEquals(1, bs0.readBit());
assertEquals(1, bs1.readBit());
bs0.alignRead();
bs1.skipRead(7);
assertEquals(1, bs0.readBit());
assertEquals(1, bs1.readBit());
assertEquals(7, bs0.available());
assertEquals(7, bs1.available());
assertEquals(7, bs0.skipRead(7));
assertEquals(0, bs0.available());
assertEquals(0, bs0.skipRead(7));