bs0.writeBit(1);
bs0.alignWrite();
bs0.writeBit(1);
BitStream bs1 = new BitStream(1);
bs1.writeBit(1);
bs1.skipWrite(7);
bs1.writeBit(1);
byte[] data = new byte[] { 1, 1 };
assertArrayEquals(data, bs0.toByteArray());
assertArrayEquals(data, bs1.toByteArray());