GlobalHeap { @Override public String toString() { return "GlobalHeap [address=" + address + ", objects=" + objects.size() + "]"; } GlobalHeap(HdfFileChannel hdfFc, long address); @Override String toString(); ByteBuffer getObjectData(int index); int getObjectReferenceCount(int index);  }
@Test void testToString() { assertThat(globalHeap.toString(), is(equalTo("GlobalHeap [address=2048, objects=1]"))); }