@Test
public void getNumSetBits_TestAllBytes() {

	for (int number = 0; number <= 255; number++) {
		int expected = 0;
		for (char c : Integer.toBinaryString(number).toCharArray()) {
			if (c == '1') {
				expected++;
			}
		}
		assertEquals(expected,
				NumSetBits.getNumSetBits((byte) number, 0, 7));
	}
}