private static void assertFilledWithZeros(
      final byte[] byteArray, final int startOffset, final int endOffset) {
    for (int i = startOffset; i < endOffset; ++i) {
      assertEquals(0, byteArray[i]);
    }
  }
Given byte array, asserts that bytes in [startOffset, endOffset) range are all zeroed;

@param byteArray
@param startOffset
@param endOffset
imagepipeline/src/test/java/com/facebook/common/memory/PooledByteArrayBufferedInputStreamTest.java