public void writeLong(long value) throws IOException {
        writeInt((int)value);
        writeInt((int)(value >> 32));
    }
@Test
    public void testWriteLong() throws IOException {
        writer.writeLong(0x1122334455667788L);
        writer.writeLong(-0x1122334455667788L);

        expectData(0x88, 0x77, 0x66, 0x55, 0x44, 0x33, 0x22, 0x11,
                   0x78, 0x88, 0x99, 0xAA, 0xBB, 0xCC, 0xDD, 0xEE);
    }