@Test public void test_freePhys_PutAndTake() throws IOException { engine.lock.writeLock().lock(); final long offset = 1111000; final int size = 344; final long indexVal = (((long) size) << 48) | offset; engine.freePhysRecPut(indexVal); assertEquals(indexVal, engine.freePhysRecTake(size)); assertEquals( arrayList(), getLongStack( StorageDirect.RECID_FREE_PHYS_RECORDS_START + engine.freePhysRecSize2FreeSlot(size))); }