@Test public void compact(){

    Map<Long,Long> recids = new HashMap<Long, Long>();
    for(Long l=0L;l<1000;l++){
        recids.put(l,
                engine.put(l, Serializer.LONG_SERIALIZER));
    }
    engine.commit();
    engine.compact();
    for(Map.Entry<Long,Long> e:recids.entrySet()){
        Long recid= e.getValue();
        Long value = e.getKey();
        assertEquals(value, engine.get(recid, Serializer.LONG_SERIALIZER));
    }
}