@Test
public void testToString() {

	RankedBitVectorImpl bv = new RankedBitVectorImpl();
	for (int i = 0; i < 0x10; i++) {
		boolean value = (i % 3) == 0;
		bv.addBit(value);
	}
	Assert.assertEquals("1001001001001001", bv.toString());
	assertCorrectCount(bv);
	assertCorrectFindPosition(bv);
	for (int i = 0; i < 0x10; i++) {
		boolean value = (i % 2) == 0;
		bv.addBit(value);
	}
	Assert.assertEquals("10010010010010011010101010101010", bv.toString());
	assertCorrectCount(bv);
	assertCorrectFindPosition(bv);
	for (int i = 0; i < 0x20; i++) {
		bv.setBit(i, bv.getBit(i));
	}
	Assert.assertEquals("10010010010010011010101010101010", bv.toString());
	assertCorrectCount(bv);
	assertCorrectFindPosition(bv);
	for (int i = 0; i < 0x20; i++) {
		bv.setBit(i, !bv.getBit(i));
	}
	Assert.assertEquals("01101101101101100101010101010101", bv.toString());
	assertCorrectCount(bv);
	assertCorrectFindPosition(bv);
}