for (Map.Entry<BigInteger, Integer> entry : numbers.entrySet()) {
BigInteger number = entry.getKey();
Integer size = entry.getValue();
if (size == Byte.SIZE) {
assertEquals(number.byteValue(), bs.readBits(size, true).byteValue());
} else if (size == Short.SIZE) {
assertEquals(number.shortValue(), bs.readBits(size, true).shortValue());
} else if (size == Integer.SIZE) {
assertEquals(number.intValue(), bs.readBits(size, true).intValue());
} else if (size == Long.SIZE) {