* @throws RBTException
*
*/
public void testChangeHeader() throws HeapException, RBTException {
/* new heap header creation and write with check */
final RecordForTest heapHeader1 = appendHeaderInEmptyFile();
/* then read header */
heapElementManager.startService();
heapElementManager.openTransaction();
final RecordForTest heapHeader2 = getHeapHeaderAndCheckPosition(heapHeader1);
heapHeader2.setValue(HEAP_HEADER_VALUE - 1);
/* write modifications */
heapElementManager.closeTransaction();
/* read the last modification */
heapElementManager.openTransaction();
final RecordForTest heapHeader3 = getHeapHeaderAndCheckPosition(heapHeader2);
/* check modifications */
assertEquals("bad value", HEAP_HEADER_VALUE - 1, heapHeader3.getValue());// NOPMD
heapElementManager.closeTransaction();
heapElementManager.stopService();
}