Assert.assertEquals(d, dataInput.readDouble(), 0.0001);
Assert.assertEquals(f, dataInput.readFloat(), 0.0001);
Assert.assertEquals(i, dataInput.readInt());
Assert.assertEquals(l, dataInput.readLong());
Assert.assertEquals(s, dataInput.readShort());
Assert.assertEquals(string, dataInput.readUTF());
Assert.assertEquals(Math.abs(i), dataInput.readVInt());
Assert.assertEquals(Math.abs(l), dataInput.readVLong());
}
public void testIndexOf() {