@@ -0,0 +1,812 @@
+package org.mapdb;%0A%0Aimport org.junit.Test;%0A%0Aimport static org.junit.Assert.assertEquals;%0A%0A%0Apublic class DataOutput2Test %7B%0A%0A    DataOutput2 out = new DataOutput2();%0A%0A    DataInput2 in()%7B%0A        return new DataInput2(out.buf);%0A    %7D%0A%0A    @Test%0A    public void testWriteFloat() throws Exception %7B%0A        float f = 12.1239012093e-19F;%0A        out.writeFloat(f);%0A        DataInput2 in = in();%0A        assertEquals(Float.floatToIntBits(f),Float.floatToIntBits(in.readFloat()));%0A        assertEquals(4,in.pos);%0A    %7D%0A%0A    @Test%0A    public void testWriteDouble() throws Exception %7B%0A        double f = 12.123933423523012093e-199;%0A        out.writeDouble(f);%0A        DataInput2 in = in();%0A        assertEquals(Double.doubleToLongBits(f),Double.doubleToLongBits(in.readDouble()));%0A        assertEquals(8,in.pos);%0A    %7D%0A%7D%0A

add unit test