@Test
public void validDigitReturnsProperCharacter() throws Exception {
final char[] expectedLower = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'};
final char[] expectedUpper = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F'};
for (int i = 0; i < 16; i++) {
assertEquals(String.format("Expected %x", i), expectedLower[i], Chars.getLowerCaseHex(i));
assertEquals(String.format("Expected %X", i), expectedUpper[i], Chars.getUpperCaseHex(i));
}
}
}