bsw.writeBits(number, size);
bitsWritten += size;
}
assertEquals(bitsWritten, bsw.available());
assertEquals(548, bsw.bytes());
byte[] data = bsw.toByteArray();
BitStream bsr = new BitStream(data, 0, bitsWritten);
for (Map.Entry<BigInteger, Integer> entry : numbers.entrySet()) {