BlockMgr blkMgr = makeBlockMgr() ;
blkMgr.beginUpdate() ;
RecordBufferPageMgr rpm = new RecordBufferPageMgr(factory, blkMgr) ;
int x = -99 ;
{
RecordBufferPage page1 = rpm.create() ;
fill(page1.getRecordBuffer(), 10, 20, 30) ;
x = page1.getId() ;
rpm.put(page1) ;
page1 = null ;
}
blkMgr.endUpdate() ;
blkMgr.beginRead() ;
{
RecordBufferPage page2 = rpm.getRead(x) ;
assertEquals(10, get(page2, 0)) ;
assertEquals(20, get(page2, 1)) ;
assertEquals(30, get(page2, 2)) ;
rpm.release(page2) ;
}