@Test
public void complement() {

	final Random random = new Random(Randoms.seed());
	final byte[] data = new byte[20];
	random.nextBytes(data);
	final byte[] cdata = Bits.complement(data.clone());
	Assert.assertFalse(Arrays.equals(data, cdata));
	Assert.assertTrue(Arrays.equals(data, Bits.complement(cdata)));
}