@Test
public void testEquals() {

  byte[] bits = { (byte) 0xFF, (byte) 0x01, (byte) 0x00 };
  StrictBitVector bv = new StrictBitVector(bits);
  byte[] otherBits = { (byte) 0xFF, (byte) 0x01, (byte) 0x00 };
  StrictBitVector otherBv = new StrictBitVector(otherBits);
  assertTrue(bv.equals(bv));
  assertTrue(bv.equals(otherBv));
  assertFalse(bv.equals(null));
  assertFalse(bv.equals("Not a bit vector"));
  assertFalse(bv.equals(new StrictBitVector(new byte[]{})));
}