### Question:
BaseByteArrayWriter implements ByteArrayWriter { @Override public void resetContentPosition() { curPos = 0; } BaseByteArrayWriter(ByteWriter dataWriter, LongWriter posWriter, IntWriter lenWriter, boolean isOverwrite, @Nullable LongWriter lastPosWriter, @Nullable LongReader lastPosReader); @Override void put(long pos, byte[] val); @Override OutputStream putStream(final long pos); @Override void resetContentPosition(); @Override void release();  }### Answer:
@Test public void resetContentPosition() { BaseByteArrayWriter byteArrayWriter = new BaseByteArrayWriter(dataWriter, posWriter, lenWriter, true, lastPosWriter, lastPosReader); Whitebox.setInternalState(byteArrayWriter, "curPos", 1L); byteArrayWriter.resetContentPosition(); assertEquals(0L, (long) Whitebox.getInternalState(byteArrayWriter, "curPos")); }