OSBTreeBucket<Long, OIdentifiable> treeBucket = new OSBTreeBucket<Long, OIdentifiable>(cacheEntry, true,
OLongSerializer.INSTANCE, null, OLinkSerializer.INSTANCE, ODurablePage.TrackMode.FULL);
treeBucket.setLeftSibling(123);
Assert.assertEquals(treeBucket.getLeftSibling(), 123);
cachePointer.decrementReferrer();
}
public void testSetRightSibling() throws Exception {
ODirectMemoryPointer pointer = new ODirectMemoryPointer(OSBTreeBucket.MAX_PAGE_SIZE_BYTES + ODurablePage.PAGE_PADDING);
OCachePointer cachePointer = new OCachePointer(pointer, new OLogSequenceNumber(0, 0));