// byte[] data = heapRecord.getDataAssociated();
final byte[] data = new byte[10];
heapRecord.setDataAssociated(data);
System.arraycopy("0123456789".getBytes(), 0, data, 0, 10);
heapRecord.setValueIsChangedValueToSave();
heapRecord.writeToFile();
readAndCheck(heapRecord, data);
/*
* free record
*/