@Test public void testPackLong() throws Exception {

    DataOutput2 out = new DataOutput2();
    DataInput2 in = new DataInput2(ByteBuffer.wrap(out.buf,0, out.pos),0);
    for(long i = 0;i>-1L  ; i=i+1 + i/111){  //overflow is expected
        out.pos = 0;
        Utils.packLong(out, i);
        in.pos = 0;
        in.buf.clear();
        long i2 = Utils.unpackLong(in);
        Assert.assertEquals(i, i2);
    }
}