ChunkOffset { @Override public String toString() { return "ChunkOffset{" + Arrays.toString(offset) + '}'; } ChunkOffset(int[] chunkOffset); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }
@Test void testToString() { ChunkOffset chunkOffset = new ChunkOffset(new int[]{1, 2, 3}); assertThat(chunkOffset.toString(), is("ChunkOffset{[1, 2, 3]}")); }