@@ -0,0 +1,911 @@
+package org.mapdb.issues;%0A%0Aimport org.junit.Test;%0Aimport org.mapdb.CC;%0Aimport org.mapdb.Serializer;%0Aimport org.mapdb.SortedTableMap;%0Aimport org.mapdb.TT;%0Aimport org.mapdb.volume.MappedFileVol;%0Aimport org.mapdb.volume.Volume;%0A%0Aimport java.io.File;%0Aimport java.util.Map;%0A%0Aimport static org.junit.Assert.assertEquals;%0A%0A/**%0A * Created by jan on 5/2/16.%0A */%0Apublic class Issue697 %7B%0A    @Test%0A    public void test()%7B%0A%0A        SortedTableMap.Sink%3CInteger, String%3E sink = SortedTableMap.create(%0A                CC.DEFAULT_MEMORY_VOLUME_FACTORY.makeVolume(null, false),%0A                Serializer.INTEGER,%0A                Serializer.STRING)%0A                .createFromSink();%0A%0A        for (int i = 0; i %3C 10; i++)%0A        %7B%0A            sink.put(i, %22value%22 + i);%0A        %7D%0A%0A        Map m = sink.create();%0A        for (int i = 0; i %3C 10; i++)%0A        %7B%0A            assertEquals(%22value%22 + i, m.get(i));%0A        %7D%0A%0A%0A    %7D%0A%7D%0A

verify and fix #697