@Test
public void testDecodeInt() throws Exception {
InputStream in = new ByteArrayInputStream(new byte[] { (byte) 0x80,
(byte) 0x00, (byte) 0x00, (byte) 0x01 });
Decoder decoder = new MemcmpDecoder(in);
int i = decoder.readInt();
assertEquals(1, i);
in = new ByteArrayInputStream(new byte[] { (byte) 0x7f, (byte) 0xff,
(byte) 0xff, (byte) 0xff });
decoder = new MemcmpDecoder(in);