@Test
public void testEqualityAndCopyConstructor() {

	final long aLargeNumber = 0x100000;
	RankedBitVectorImpl bv0 = new RankedBitVectorImpl();
	RankedBitVectorImpl bv1 = new RankedBitVectorImpl();
	PseudorandomBooleanGenerator generator = new PseudorandomBooleanGenerator(
			0x1234);
	for (int i = 0; i < aLargeNumber; i++) {
		boolean value = generator.getPseudorandomBoolean();
		bv0.addBit(value);
		bv1.addBit(value);
	}
	assertEqualsForBitVector(bv0, bv1);
	RankedBitVectorImpl bv2 = new RankedBitVectorImpl(bv1);
	assertEqualsForBitVector(bv0, bv2);
}