@Test
public final void testEncode() {

	for (int i = Byte.MIN_VALUE; i <= Byte.MAX_VALUE; i++) {
		final String expected = String.format("%02X",
				Integer.valueOf(i & 0xFF));
		final String actual = Hex.encode(new byte[] { (byte) i });
		Assert.assertEquals(expected, actual);
	}
}