}
}
@Test
public void testShort() {
HexEncoder encoder = new HexEncoder();
Assert.assertEquals("1234", new String(encoder.encodeShort((short) 0x1234)));
Assert.assertEquals("f234", new String(encoder.encodeShort((short) 0xf234)));
short s = Short.MIN_VALUE;
while (s != Short.MAX_VALUE) {
Assert.assertEquals(s, encoder.decodeShort(encoder.encodeShort(s)));
s++;
}
}