@Test
public void reverse() {

	final byte[] array = new byte[1000];
	new Random().nextBytes(array);
	final byte[] reverseArray = Bits.reverse(array.clone());
	for (int i = 0; i < array.length; ++i) {
		Assert.assertEquals(reverseArray[i], array[array.length - 1 - i]);
	}
}