LocalHeap { public ByteBuffer getDataBuffer() { return dataBuffer; } LocalHeap(HdfFileChannel hdfFc, long address); short getVersion(); long getDataSegmentSize(); long getOffsetToHeadOfFreeList(); long getAddressOfDataSegment(); @Override String toString(); ByteBuffer getDataBuffer();  }
@Test void testAccessingData() { LocalHeap heap = new LocalHeap(hdfFc, 680); ByteBuffer bb = heap.getDataBuffer(); assertThat(bb.capacity(), is(equalTo(88))); bb.position(8); assertThat(Utils.readUntilNull(bb), is("datasets_group")); }