@Test
public void testByte() {
HexEncoder encoder = new HexEncoder();
Assert.assertEquals("12", new String(encoder.encodeByte((byte) 0x12)));
Assert.assertEquals("f2", new String(encoder.encodeByte((byte) 0xf2)));
byte b = Byte.MIN_VALUE;
while (b != Byte.MAX_VALUE) {
Assert.assertEquals(b, encoder.decodeByte(encoder.encodeByte(b)));