private static void PutGetTestAssert(byte[] buffer, PersistentHeap heap)
 {
     int token = heap.Allocate(buffer.Length);
     heap.Put(token, buffer);
     TestHelper.AssertByteArraysAreSame(buffer, heap.Get(token));
 }
 private static int PutGetAssert(byte[] bytes, PersistentHeap heap)
 {
     Debug.Assert(bytes.Length >= 4, "Your byte[] is too small to be put");
     int space1 = heap.Allocate(bytes.Length);
     heap.Put(space1, bytes);
     TestHelper.AssertByteArraysAreSame(bytes, heap.Get(space1));
     return space1;
 }