@Test
public void testSize() {

	{
		BitVectorImpl bv = new BitVectorImpl(0x100);
		Assert.assertEquals(0x100, bv.size());
		bv.addBit(false);
		bv.addBit(true);
		Assert.assertEquals(0x102, bv.size());
	}
	{
		BitVectorImpl bv = new BitVectorImpl();
		Assert.assertEquals(0, bv.size());
		for (int i = 0; i < 0x300; i++) {
			bv.addBit((i % 5) == 0);
			Assert.assertEquals(i + 1, bv.size());
		}
	}
}