dataOutput.writeVLong(Math.abs(l));
byte[] data = dataOutput.toByteArray();
DataInput dataInput = new DataInputImpl(data);
Assert.assertEquals(b, dataInput.readBoolean());
Assert.assertEquals(bytes[0], dataInput.readByte());
Assert.assertArrayEquals(bytes, dataInput.readBytes(10));
Assert.assertEquals(d, dataInput.readDouble(), 0.0001);
Assert.assertEquals(f, dataInput.readFloat(), 0.0001);
Assert.assertEquals(i, dataInput.readInt());
Assert.assertEquals(l, dataInput.readLong());