public void testDecodeLong() throws Exception {
InputStream in = new ByteArrayInputStream(new byte[] { (byte) 0x00,
(byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00, (byte) 0x00,
(byte) 0x00, (byte) 0x01 });
Decoder decoder = new ColumnDecoder(in);
long i = decoder.readLong();
assertEquals(1L, i);
in = new ByteArrayInputStream(new byte[] { (byte) 0xff, (byte) 0xff,
(byte) 0xff, (byte) 0xff, (byte) 0xff, (byte) 0xff, (byte) 0xff,
(byte) 0xff });